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);
        }
Exemple #2
0
        public IncomeSource_Modal(
            ManageIncSourceVM initialVM,
            AccountsOM accountOverMind,
            TransactionsOM transactionsOM,
            ModalCloseDelegate onClose = null
            )
        {
            vm             = initialVM;
            _OnClose       = onClose;
            AccountsOM     = accountOverMind;
            TransactionsOM = transactionsOM;
            OGAccount      = initialVM.Account;

            InitializeComponent();

            Title = vm.IsEditMode ? vm.Account.AccountName : "Add a new IncomeSource";

            VMHandle.DataContext       = vm;
            IncSource_Grid.DataContext = Account;

            Frequency_ComboBox.BindToList(vm, "Frequencies", "SelectedFrequency");
            ToAccount_ComboBox.BindToList(vm, "ToAccounts", "SelectedToAccount");
        }