private void GXTest_FormClosed(object sender, FormClosedEventArgs e) { if (monitor != null) { monitor.UnRegMonitor(this); monitor.Close(); } }
public MonitorResult Close() { Stop(); if (m_Monitor != null) { return(m_Monitor.Close()); } else { return(new MonitorResult(MonitorResults.Success, "Successfully closed the monitor.")); } }
private void FormExam_FormClosing(object sender, FormClosingEventArgs e) { monitor.Close(); }