public static CTAP getSingleton() { if (singleton == null) { singleton = new CTAP(); } return(singleton); }
public static CTAP getSingleton() { if (singleton == null) { singleton = new CTAP(); } return singleton; }
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()); }