private void ShowDayCosts(object parameter) { if (SelectedCost != null) { var dayCostsView = new DayCostsView(SelectedCost.Date); dayCostsView.ShowDialog(); _costs.Clear(); _costs = BC.GetInfoCosts(SelectedYear, SelectedMonth).ToList(); Filter(); BC.RefreshContext(); } }
private void DayCosts_OnClick(object sender, RoutedEventArgs e) { var costView = new DayCostsView(DateTime.Now); costView.ShowDialog(); }