public MainViewModel() { _currentWindow = System.Windows.Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _backupDialog = new BackupDialog(); _restoreBackupDialog = new RestoreBackupDialog(); _userDialog = new UserDialog(); _loginDialog = new Views.MainViews.LoginDialog(); }
public MainViewModel() { _isFocused = true; _loginModel = new LoginDataModel(); currentWindow = System.Windows.Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); backupDialog = new BackupDialog(); restoreBackupDialog = new RestoreBackupDialog(); loginDialog = new Views.MainViews.LoginDialog(); startShiftDialog = new StartShiftDialog(); }
public MainViewModel() { _isFocused = true; _currentedUser = new User(); _currentWindow = System.Windows.Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _backupDialog = new BackupDialog(); _restoreBackupDialog = new RestoreBackupDialog(); _userDialog = new UserDialog(); _settingsDialog = new SettingsDialog(); _loginDialog = new Views.MainViews.LoginDialog(); Year = DateTime.Now.Year; GetYears(); SelectedYear = Year.ToString(); }