private void Form1_FormClosed(object sender, FormClosedEventArgs e) { partServiceHost.Close(); cmmCtrlHost.Close(); _bladeMeasureContext.Dispose(); PartConfigManager.Instance.SavePartConfigToXml(@"D:\ServerPathRoot\parts.xml"); }
private void MainFrm_FormClosed(object sender, FormClosedEventArgs e) { _partServiceHost.Close(); _ctrlHost.Close(); _msc.Dispose(); _partServiceHost = null; _ctrlHost = null; _msc = null; }