public MainWindow() { InitializeComponent(); var navigationModel = new NavModel(this); NavManager.Instance.Initialize(navigationModel); navigationModel.Navigate(ModesEnum.SignIn); Model.ApplicationStaticDB.AddUser(new Model.User("Julia", "Aleksandrova", "*****@*****.**", "ddenouement", "12345")); }
public MainWindow() { InitializeComponent(); var navigationModel = new NavModel(this); NavManager.Instance.Initialize(navigationModel); Logger.Log("NavManager Initialized"); MainWindowViewModel mainWindowViewModel = new MainWindowViewModel(); DataContext = mainWindowViewModel; Logger.Log("DataContext initialized"); // DB.ApplicationStaticDB.Deserialize(DataBaseSerializationFilePath); mainWindowViewModel.StartApplication(); Logger.Log("Application started"); }
/// <summary> /// This methos is used to switch to another navigation model /// </summary> /// <param name="navigationModel">New NavigationModel</param> internal void Initialize(NavModel navigationModel) { _navigationModel = navigationModel; }