Exemplo n.º 1
0
 private void menuItem4_Click(object sender, EventArgs e)
 {
     if (Derma.GetPanels().Count > 0)
     {
         DialogResult reply = MessageBox.Show("Are you sure you want to start a new project?\nAny unsaved data will be lost.",
                                              "Really create a new project?", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
         if (reply == DialogResult.Yes)
         {
             DSave.ClearAll();
             Derma.prop.propertyGrid.SelectedObject = null;
             Derma.Repaint();
         }
     }
     else
     {
         DSave.ClearAll();
         Derma.prop.propertyGrid.SelectedObject = null;
         Derma.Repaint();
     }
 }
Exemplo n.º 2
0
 private void OpenDialog_FileOk(object sender, CancelEventArgs e)
 {
     DSave.ClearAll();
     DSave.Load(OpenDialog.FileName);
 }