Beispiel #1
0
        private void Refresh()
        {
            ChooseMonth.ItemsSource = null;
            ChooseYear.ItemsSource  = null;
            ChooseUser.ItemsSource  = null;
            Cart.ItemsSource        = null;

            ChooseUser.ItemsSource  = repo.GetMembersName();
            ChooseMonth.ItemsSource = Misc.GetMonth();
            ChooseYear.ItemsSource  = Misc.GetYear();

            BazarAmount.Text = "";
            MealCount.Text   = "";

            Application.Current.Resources["list"]      = null;
            Application.Current.Resources["UsersList"] = null;

            ChooseYear.IsEnabled  = true;
            ChooseMonth.IsEnabled = true;

            _Year  = null;
            _Month = null;
        }
Beispiel #2
0
 private void LoadAllDropdowns()
 {
     ByName.ItemsSource  = MemberRepo.GetMembersName();
     ByMonth.ItemsSource = Misc.GetMonth();
     ByYear.ItemsSource  = Misc.GetYear();
 }