/// <summary> /// TODO: Comment /// </summary> public MainView() { InitializeComponent(); //TODO: Save path in configuration string configurationPath = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "SecureVault", "settings", "configuration.dat"); ConfigurationHelper configHelper = new ConfigurationHelper(configurationPath); if (!configHelper.CheckConfiguration()) { ConfigurationPage configPage = new ConfigurationPage(); configPage.DataContext = new ConfigurationViewModel(new Configuration(), this.MainFrame); this.MainFrame.Navigate(configPage); } else { PasswordPage passwordPage = new PasswordPage(); passwordPage.DataContext = new PasswordViewModel(new Vault(), this.MainFrame); this.MainFrame.Navigate(passwordPage); } }