예제 #1
0
파일: CTAP.cs 프로젝트: damonlin/Monitor
 public static CTAP getSingleton()
 {
     if (singleton == null)
     {
         singleton = new CTAP();
     }
     return(singleton);
 }
예제 #2
0
파일: CTAP.cs 프로젝트: damonlin/Reporter
 public static CTAP getSingleton()
 {
     if (singleton == null)
     {
         singleton = new CTAP();
     }
     return singleton;
 }
예제 #3
0
파일: Program.cs 프로젝트: damonlin/Monitor
        static void Main()
        {
            if (System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length > 1)
            {
                MessageBox.Show("CTAP Already Exist!");
                return;
            }

            Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-TW");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(CTAP.getSingleton());
        }