예제 #1
0
 private void btnConvert_Click(object sender, EventArgs e)
 {
     Loading_FS.text = "\tĐang đưa dữ liệu ...";
     ChangeName();
     Loading_FS.CloseSplash();
     MessageBox.Show("Thành công!", "Thông báo!");
 }
예제 #2
0
 private static void DoShowSplash()
 {
     if (_splashForm == null)
     {
         _splashForm = new Loading_FS();
         _splashForm.StartPosition = FormStartPosition.CenterScreen;
         _splashForm.TopMost       = true;
     }
     Application.Run(_splashForm);
 }
예제 #3
0
 public static void ShowSplash()
 {
     if (_splashThread == null)
     {
         _splashThread = new Thread(DoShowSplash);
         _splashThread.IsBackground = true;
         _splashThread.Start();
     }
     else
     {
         _splashThread = new Thread(DoShowSplash);
         _splashThread.IsBackground = true;
         _splashThread.Start();
         _splashForm = null;
     }
 }