/*public string DummyProperty { get { return _dummyProperty; } set { _dummyProperty = value; } }*/ public Page1() { CurrentResearcher = new Researcher(); CurrentProject = new Project(); RColl.CollectionChanged += (sender, args) => { Updated = true; }; //RColl.Count(); Updated = false; //Reset(); InitializeComponent(); }
public void NewResearcher() { mRes = new Researcher("<Place your ad here>", "<Here can be ad too>"); mCurrentProject = new Project(); mCurrentPaper = new Paper(); mUpdated = false; OnPropertyChanged(""); }
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(""); }