static void m_form_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e) { lock (typeof(UIService)) { m_form = null; } }
private static void CreateForm() { if (m_form == null || m_form.IsDisposed) { m_form = new ServiceForm(); } }
static void CreateForm() { lock (typeof(UIService)) { if (m_form == null || m_form.IsDisposed) { m_form = new ServiceForm(); } } }
static UIService() { m_form = new ServiceForm(); m_form.FormClosed += new System.Windows.Forms.FormClosedEventHandler(m_form_FormClosed); }
static void m_form_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e) { m_form = null; }