private void btnAply_Click(object sender, EventArgs e) { if (checkBoxDate.Checked) { homeBugaltery.calculateUsersSaldo(dateTimeFor.Value, dateTimeTo.Value); } else { homeBugaltery.calculateUsersSaldo(); } updateSaldoForm(); }
public SaldoForm(HomeBugaltery homeBugaltery) { InitializeComponent(); panelDate.Enabled = checkBoxDate.Checked; homeBugaltery.calculateUsersSaldo(); updateSaldoForm(); }
public void UpdateListViewBalance() { usersSaldo.Clear(); hb.calculateUsersSaldo(FilterUserControl.DateFromFilter, FilterUserControl.DateToFilter); foreach (var userSaldo in hb.UsersSaldo) { usersSaldo.Add(userSaldo); } CollectionView view = (CollectionView)CollectionViewSource.GetDefaultView(ListViewBalance.ItemsSource); view.SortDescriptions.Add(new SortDescription("UserName", ListSortDirection.Ascending)); }