/// <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); }
protected void CloseDlg() { if (m_Dlg != null) { try { m_Dlg.Close(); m_Dlg.Dispose(); } catch { } m_Dlg = null; } }
public void Start() { CloseDlg(); m_Dlg = SettingDlg.StartUIThread(); }