コード例 #1
0
ファイル: ProjectForm.cs プロジェクト: LazyBui/Peygir
        internal void UpdateSettings()
        {
            FormUtil.FormatDateFilter(ticketCreatedTextBox, mTicketCreateFilter);
            FormUtil.FormatDateFilter(ticketModifiedTextBox, mTicketModifyFilter);

            // Because ticket details forms (history too) are modal and prevent usage of the main application, we can safely assume here that we don't need to update them
            // That is, ticket details can't be open while options change
        }
コード例 #2
0
ファイル: ProjectForm.cs プロジェクト: LazyBui/Peygir
        private void ticketModifiedButton_Click(object sender, EventArgs e)
        {
            using (var form = new DateRangeForm(mTicketModifyFilter, "Modified")) {
                var result = form.ShowDialog();
                if (result == DialogResult.Cancel)
                {
                    return;
                }

                mTicketModifyFilter = result == DialogResult.No ?
                                      null :
                                      form.Range;
                FormUtil.FormatDateFilter(ticketModifiedTextBox, mTicketModifyFilter);
                ShowTickets();
            }
        }