Example #1
0
        /// <summary>
        /// Start the UI thread
        /// </summary>
        public static SettingDlg StartUIThread()
        {
            SettingDlg dlg = new SettingDlg();

            dlg.Visible = false;
            Thread thread = new Thread(new ThreadStart(dlg.UIThread));

            thread.Start();
            return(dlg);
        }
Example #2
0
 protected void CloseDlg()
 {
     if (m_Dlg != null)
     {
         try
         {
             m_Dlg.Close();
             m_Dlg.Dispose();
         }
         catch { }
         m_Dlg = null;
     }
 }
Example #3
0
 protected void CloseDlg()
 {
     if (m_Dlg != null)
     {
         try
         {
             m_Dlg.Close();
             m_Dlg.Dispose();
         }
         catch { }
         m_Dlg = null;
     }
 }
Example #4
0
 public void Start()
 {
     CloseDlg();
     m_Dlg = SettingDlg.StartUIThread();
 }
Example #5
0
 public void Start()
 {
     CloseDlg();
     m_Dlg = SettingDlg.StartUIThread();
 }