/// <summary> /// Load model from configuration file /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { var fileDialog = new OpenFileDialog(); fileDialog.Filter = "Hyper files|*.hyper"; DialogResult result = fileDialog.ShowDialog(); if (result == DialogResult.OK) { string route = fileDialog.FileName; preferences.GetNewModel(route); InitializeSettings(); FromFileViewModel.Instance.Url = preferences.Model.LastUrl; } }