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(); } }
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(); } }