public History(IEnumerable <IHistory> _HistoryList, bool ShowSubCategoryColumn = true) : base(_HistoryList) { showSubCategory = ShowSubCategoryColumn; UC = new View.History(); base.cbxDates = UC.cbxMonth; base.control = UC.dgridHistory; base.SetComboBox(); UC.menuRemove.Click += (s, e) => { if (UC.dgridHistory.SelectedItem != null) { RemoveItem((IHistory)UC.dgridHistory.SelectedItem); } Model.Windows.RefreshData(); }; }
private void History_PreviewMouseDown(object sender, MouseButtonEventArgs e) { View.History history = new View.History(); history.ShowDialog(); }