예제 #1
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //The editor has been modify an in-memory model. This needs to be serialized back to
     //the session copy first
     _edSvc.SyncSessionCopy();
     //Call save on the editor service to commit back the changes from the session copy
     //back to the original resource
     _edSvc.Save();
     //Restore title
     if (this.Text.EndsWith(" *"))
     {
         this.Text = this.Text.Substring(0, this.Text.Length - 2);
     }
     MessageBox.Show("Saved");
 }