Пример #1
0
 public static void Init()
 {
     if (m_instatnce == null)
     {
         m_instatnce = new RemindForm();
         m_instatnce.Show();
         m_instatnce.Visible = false;
         m_instatnce.TopMost = true;
     }
 }
Пример #2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (IsRuned())
     {
         MessageBox.Show("软件已运行,不能重复启动");
         return;
     }
     RemindForm.Init();
     Application.Run(LogonForm.Instance);
 }