Ejemplo n.º 1
0
        private void btnAply_Click(object sender, EventArgs e)
        {
            if (checkBoxDate.Checked)
            {
                homeBugaltery.calculateUsersSaldo(dateTimeFor.Value, dateTimeTo.Value);
            }
            else
            {
                homeBugaltery.calculateUsersSaldo();
            }

            updateSaldoForm();
        }
Ejemplo n.º 2
0
        public SaldoForm(HomeBugaltery homeBugaltery)
        {
            InitializeComponent();

            panelDate.Enabled = checkBoxDate.Checked;

            homeBugaltery.calculateUsersSaldo();
            updateSaldoForm();
        }
Ejemplo n.º 3
0
        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));
        }