Esempio n. 1
0
 private void ProjectSaveCommandExecute()
 {
     ProjectWriter writer = new ProjectWriter(this.CurrentProject.LastFileName, this.CurrentProject.Model);
     writer.Write();
 }
Esempio n. 2
0
 private void ProjectSaveAsCommandExecute()
 {
     Microsoft.Win32.SaveFileDialog dlg = new Microsoft.Win32.SaveFileDialog();
     dlg.DefaultExt = ".pgp";
     dlg.Filter = "Fichier Projet GeoPat(.pgp)|*.pgp";
     Nullable<bool> result = dlg.ShowDialog();
     if (result.HasValue && result.Value == true)
     {
         ProjectWriter writer = new ProjectWriter(dlg.FileName, this.CurrentProject.Model);
         writer.Write();
         this.CurrentProject.LastFileName = dlg.FileName;
         this.RaiseChanges();
     }
 }