private void button_certificate_Click(object sender, EventArgs e) { CertificateDialog dlg = new CertificateDialog(); dlg.SN = LineInfo.CertificateSN; dlg.StartPosition = FormStartPosition.CenterScreen; if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.Cancel) { return; } LineInfo.CertificateSN = dlg.SN; }
private void button_certificate_Click(object sender, EventArgs e) { CertificateDialog dlg = new CertificateDialog(); dlg.SN = LineInfo.CertificateSN; dlg.StartPosition = FormStartPosition.CenterScreen; if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.Cancel) return; LineInfo.CertificateSN = dlg.SN; }