public void LoadResearcher() { OpenFileDialog dialog = new OpenFileDialog(); if (dialog.ShowDialog() == true) { try { mRes = Researcher.Deserialize(dialog.FileName); } catch { MessageBox.Show("An error occured while loading researcher from file."); } } mCurrentProject = new Project(); mCurrentPaper = new Paper(); mUpdated = false; OnPropertyChanged(""); }