Exemplo n.º 1
0
 //Save logic goes here
 public void NewDocument()
 {
     if (_document.IsDirty)
     {
         DialogResult result = _mainView.AskSaving();
         if (result == DialogResult.Yes)
         {
             SaveDocument();
         }
         else if (result == DialogResult.Cancel)
         {
             return;
         }
     }
     FractalDocument.GetInstance().New();
 }