private void ToolStripMenuItem_rfc1123Single_Click_1(object sender, EventArgs e) { GetTimeDialog dlg = new GetTimeDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.RangeMode = false; try { dlg.Rfc1123String = this.comboBox_fieldValue.Text; } catch { this.comboBox_fieldValue.Text = ""; } dlg.StartPosition = FormStartPosition.CenterScreen; //this.MainForm.AppInfo.LinkFormState(dlg, "ChangeOrderActionDialog_gettimedialog"); dlg.ShowDialog(this); //this.MainForm.AppInfo.UnlinkFormState(dlg); if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel) { return; } this.comboBox_fieldValue.Text = dlg.Rfc1123String; }
private void ToolStripMenuItem_rfc1123Single_Click(object sender, EventArgs e) { GetTimeDialog dlg = new GetTimeDialog(); dlg.RangeMode = false; try { dlg.Rfc1123String = this.textBox_fieldValue.Text; } catch { this.textBox_fieldValue.Text = ""; } Program.MainForm.AppInfo.LinkFormState(dlg, "ChangeReaderActionDialog_gettimedialog"); dlg.ShowDialog(this); Program.MainForm.AppInfo.UnlinkFormState(dlg); if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel) { return; } this.textBox_fieldValue.Text = dlg.Rfc1123String; }