示例#1
0
        public BankViewModel(OptionViewModel options, OverviewWindow parent, MainViewModel mainVM, string tallyName, string month)
        {
            Options = options;
            MainVM  = mainVM;

            OpenBankTable(tallyName, month);
            View = new BankWindow(this)
            {
                Top  = parent.Top + 20,
                Left = parent.Left + 20
            };

            bool?Result = View.ShowDialog();

            if ((bool)Result)
            {
                Db.Dispose();
            }
        }
示例#2
0
        public BankViewModel(OptionViewModel options, MainWindow parent, MainViewModel mainVM, bool hasMissedTallies = false)
        {
            Options          = options;
            MainVM           = mainVM;
            HasMissedTallies = hasMissedTallies;

            OpenBankTable();
            View = new BankWindow(this)
            {
                Top  = parent.Top + 20,
                Left = parent.Left + 20
            };

            bool?Result = View.ShowDialog();

            if ((bool)Result)
            {
                Db.Dispose();
            }
        }