Esempio n. 1
0
        public BankAccount_Form(ManageBankAccountVM initialVM, AccountsOM accountOverMind, TransactionsOM transactionsOverMind)
        {
            accountsOM     = accountOverMind;
            transactionsOM = transactionsOverMind;
            vm             = initialVM;
            IsEditMode     = initialVM.IsEditMode;
            OGAccount      = initialVM.Account;

            InitializeComponent();

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

            VMHandle.DataContext         = vm;
            BankAccount_Grid.DataContext = Account;

            FromAccount_ComboBox.BindToList(vm, "FromAccounts", "SelectedFromAccount");
        }
        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);
        }
Esempio n. 3
0
        public BankAccount_Modal(
            ManageBankAccountVM initialVM,
            AccountsOM accountOverMind,
            TransactionsOM transactionsOverMind,
            OpenTransactionModalDelegate openTransactionModal,
            ModalCloseDelegate onClose = null
            )
        {
            _OpenTransactionModal = openTransactionModal;
            _OnClose       = onClose;
            accountsOM     = accountOverMind;
            transactionsOM = transactionsOverMind;
            vm             = initialVM;

            InitializeComponent();

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

            VMHandle.DataContext = vm;

            FromAccount_ComboBox.BindToList(vm, "FromAccounts", "SelectedFromAccount");
        }
Esempio n. 4
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");
        }
Esempio n. 5
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");
        }