private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { if (m_caffeRun != null) { ((IDisposable)m_caffeRun).Dispose(); m_caffeRun = null; m_autoTest.Abort(); } }
public FormMain() { InitializeComponent(); Log log = new Log("Test Run"); log.OnWriteLine += Log_OnWriteLine; m_caffeRun = new MyCaffeControl <float>(new SettingsCaffe(), log, m_evtCancel); }