public LogInWindowViewModel()
 {
     db                   = new FinancesDBContext();
     _loginCommand        = new RelayCommand(Login, i => true);
     _registrationCommand = new RelayCommand(Registration);
 }
 public Window2(int Id, FinancesDBContext db)
 {
     MainVM      = new MainWindowViewModel(db, Id);
     DataContext = MainVM;
     InitializeComponent();
 }