コード例 #1
0
ファイル: Page1.xaml.cs プロジェクト: nurumaik/CSlab
 /*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();
 }
コード例 #2
0
ファイル: ViewModel.cs プロジェクト: nurumaik/CSlab
 public void NewResearcher()
 {
     mRes = new Researcher("<Place your ad here>", "<Here can be ad too>");
     mCurrentProject = new Project();
     mCurrentPaper = new Paper();
     mUpdated = false;
     OnPropertyChanged("");
 }
コード例 #3
0
ファイル: ViewModel.cs プロジェクト: nurumaik/CSlab
 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("");
 }