Exemple #1
0
        private void ToolStripMenuItem_uRange_Click(object sender, EventArgs e)
        {
            GetTimeDialog dlg = new GetTimeDialog();
            GuiUtil.AutoSetDefaultFont(dlg);
            dlg.RangeMode = true;
            try
            {
                dlg.uString = this.textBox_word.Text;
            }
            catch
            {
                this.textBox_word.Text = "";
            }

            dlg.StartPosition = FormStartPosition.CenterScreen;
            dlg.ShowDialog(this.Container);

            if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel)
                return;

            this.textBox_word.Text = dlg.uString;
        }
Exemple #2
0
        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 = "";
            }
            this.MainForm.AppInfo.LinkFormState(dlg, "ChangeReaderActionDialog_gettimedialog");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel)
                return;

            this.textBox_fieldValue.Text = dlg.Rfc1123String;
        }
Exemple #4
0
        private void ToolStripMenuItem_uRange_Click(object sender, EventArgs e)
        {
            GetTimeDialog dlg = new GetTimeDialog();
            dlg.RangeMode = true;
            try
            {
                dlg.uString = this.textBox_queryWord.Text;
            }
            catch
            {
                this.textBox_queryWord.Text = "";
            }

            this.MainForm.AppInfo.LinkFormState(dlg, "searchbiblioform_gettimedialog_range");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel)
                return;

            this.textBox_queryWord.Text = dlg.uString;
        }
Exemple #5
0
        private void ToolStripMenuItem_rfc1123Range_Click(object sender, EventArgs e)
        {
            GetTimeDialog dlg = new GetTimeDialog();
            GuiUtil.SetControlFont(dlg, this.Font);
            dlg.RangeMode = true;
            // 分割为两个字符串
            try
            {
                dlg.Rfc1123String = this.textBox_simple_queryWord.Text;
            }
            catch
            {
                this.textBox_simple_queryWord.Text = "";
            }
            this.MainForm.AppInfo.LinkFormState(dlg, "dp2searchform_gettimedialog_range");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel)
                return;

            this.textBox_simple_queryWord.Text = dlg.Rfc1123String;

        }