일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Microsoft
- ListView
- C#
- Coding
- 코딩테스트
- IValueConverter
- coding-test
- Visual Studio
- .net
- windows10
- logging
- mysql
- commit
- convert
- log
- nullable
- Github
- Binding
- windows
- dotNET
- git
- chashtag
- programmers
- string
- Process
- algorithm
- csharp
- File
- tls
- WPF
Archives
- Today
- Total
목록상호배제 (1)
CHashtag

// App.xaml.cs // 프로그램 시작, 종료 지점에 해당 코드를 삽입하여도 무방합니다. const string MUTEX_NAME = "SOME_UNIQUE_MUTEX_NAME"; Mutex mutex = null; App() { bool isNew; try { mutex = new Mutex(false, MUTEX_NAME, out isNew); if (!isNew) { Application.Current.Shutdown(); mutex = null; return; } } catch (Exception ex) { Application.Current.Shutdown(); } } /// /// 프로그램이 종료되기 전에 Mutex를 해제해주어야 한다. /// /// /// private void A..
C#
2021. 6. 30. 16:03