Exemple #1
0
 private void LoadFillSetttingsButton_Click(object sender, EventArgs e)
 {
     try
     {
         OpenFileDialog d = new OpenFileDialog();
         d.Filter = "Random Environment (*.renv)|*.renv";
         //d.InitialDirectory = GetInitialDirectory();
         if (d.ShowDialog() == DialogResult.OK)
         {
             mObjectPlacementSettings = ObjectPlacementSettingsFile.Load(d.FileName);
         }
     }
     catch (System.Exception ex)
     {
         CoreGlobals.getErrorManager().OnException(ex);
     }
 }
Exemple #2
0
 private void SaveFillSettingsButton_Click(object sender, EventArgs e)
 {
     if (mObjectPlacementSettings.Count == 0)
     {
         return;
     }
     try
     {
         SaveFileDialog d = new SaveFileDialog();
         d.Filter = "Random Environment (*.renv)|*.renv";
         //d.InitialDirectory = pr
         if (d.ShowDialog() == DialogResult.OK)
         {
             ObjectPlacementSettingsFile.Save(d.FileName, mObjectPlacementSettings);
         }
     }
     catch (System.Exception ex)
     {
         CoreGlobals.getErrorManager().OnException(ex);
     }
 }