일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ListView
- string
- Binding
- coding-test
- logging
- File
- log
- dotNET
- programmers
- git
- 코딩테스트
- Coding
- windows
- WPF
- Visual Studio
- mysql
- IValueConverter
- Microsoft
- C#
- csharp
- Github
- algorithm
- .net
- tls
- Process
- nullable
- convert
- commit
- windows10
- chashtag
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