public Schedule_Modal(ManageScheduleVM initialVM, TransactionsOM transactionsOM, string accountName, string accountType, UpdateScheduleDelegate onClose)
        {
            vm             = initialVM;
            _OnClose       = onClose;
            TransactionsOM = transactionsOM;

            InitializeComponent();

            Title = $"Customize schedule for {accountName} ({accountType})";

            VMHandle.DataContext = vm;

            Frequency_ComboBox.BindToList(vm, "Frequencies", "SelectedFrequency");

            Hour_ComboBox.BindToList(vm, "HoursList", "SelectedHour");

            Meridian_ComboBox.BindToList(vm, "MeridianList", "SelectedMeridian", true);
        }
예제 #2
0
        public Transaction_Modal(TransactionModalVM initialVM, TransactionsOM om, ModalCloseDelegate onClose)
        {
            vm             = initialVM;
            transactionsOM = om;
            _OnClose       = onClose;
            IsBeingDeleted = false;

            InitializeComponent();

            VMHandle.DataContext = vm;

            TransactionType_ComboBox.BindToList(vm, "TransactionTypesList", "SelectedTransactionType");

            Hour_ComboBox.BindToList(vm, "HoursList", "SelectedHour");

            Meridian_ComboBox.BindToList(vm, "MeridianList", "SelectedMeridian", true);

            FromAccount_ComboBox.BindToList(vm, "FromAccounts", "SelectedFromAccount");

            ToAccount_ComboBox.BindToList(vm, "ToAccounts", "SelectedToAccount");

            Category_ComboBox.BindToList(vm, "CategoryList", "SelectedCategory");
        }