Esempio n. 1
0
        private void byDateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool isFiltered = byDateToolStripMenuItem.Checked;

            if (!isFiltered)
            {
                fDatePicker  datePicker = new fDatePicker();
                DialogResult dr         = datePicker.ShowDialog(this);

                if (dr == DialogResult.OK)
                {
                    _dateFilter        = datePicker.SelectedDate.Value;
                    _dateFilterOptions = datePicker.SelectedOption.Value;
                    byDateToolStripMenuItem.Checked = true;
                    LoadTree();
                }
            }
            else
            {
                _dateFilter        = null;
                _dateFilterOptions = null;
                byDateToolStripMenuItem.Checked = false;
                LoadTree();
            }
        }
Esempio n. 2
0
        private void byDateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fDatePicker  datePicker = new fDatePicker();
            DialogResult dr         = datePicker.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                DateTime val    = datePicker.SelectedDate.Value;
                var      option = datePicker.SelectedOption.Value;
            }
        }