예제 #1
0
        public void ViewChanged(ViewEventArgs e)
        {
            UserToFilter           = e.UserToFilter;
            TextToFilter           = e.TextToFilter;
            MinDateTimeToFilter    = e.MinDateTimeToFilter;
            MaxDateTimeToFilter    = e.MaxDateTimeToFilter;
            StyleMessage           = e.StyleMessage;
            FilterByMinDateChecked = e.FilterByMinDateChecked;
            FilterByMaxDateChecked = e.FilterByMaxDateChecked;
            OrMode = e.OrMode;

            UpdateView();
        }
예제 #2
0
        public new void Update()
        {
            var viewArg = new ViewEventArgs {
                UserToFilter           = this.userComboBox?.SelectedItem?.ToString(),
                TextToFilter           = this.searchTextBox.Text,
                MinDateTimeToFilter    = this.dateTimePickerMin.Value,
                MaxDateTimeToFilter    = this.dateTimePickerMax.Value,
                StyleMessage           = this.FormattingComboBox?.SelectedItem?.ToString(),
                FilterByMinDateChecked = this.dateTimePickerMin.Checked,
                FilterByMaxDateChecked = this.dateTimePickerMax.Checked,
                OrMode = orModeToolStripMenuItem.Checked
            };

            Changed?.Invoke(this, viewArg);
        }