Beispiel #1
0
 /*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();
 }
Beispiel #2
0
 public void NewResearcher()
 {
     mRes = new Researcher("<Place your ad here>", "<Here can be ad too>");
     mCurrentProject = new Project();
     mCurrentPaper = new Paper();
     mUpdated = false;
     OnPropertyChanged("");
 }
Beispiel #3
0
 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("");
 }