public LicenseForm(IGraphForm iSetting, GraphForm graphForm) { this.iSetting = iSetting; this.graphForm = graphForm; InitializeComponent(); txtlMachineCode.Text = string.Join(clsConst.KEY_CHAR_JOIN, clsCommon.GetMachineCode()); txtKey.Focus(); }
public GraphForm(IGraphForm iSetting, bool blnIsDebug = false) { _iSetting = iSetting; _iSetting.FormSetting = this; IsDeBugMode = blnIsDebug; InitializeComponent(); IntForm(); }
private void GraphForm_FormClosing(object sender, FormClosingEventArgs e) { if (_blnStartMeasure) { e.Cancel = !ShowMsg(MessageBoxIcon.Warning, MSG_EXIT_APP); return; } Disconnect(); if (_iSetting != null) { _iSetting.Dispose(); _iSetting = null; } }