예제 #1
0
 private void NewOBJD_Click(object sender, EventArgs e)
 {
     var iff = ActiveIff.MainIff;
     var objDialog = new NewObjectDialog(iff, false);
     objDialog.ShowDialog();
     if (objDialog.DialogResult == DialogResult.OK)
     {
         RegenObjMeta(ActiveIff);
         MainWindow.Instance.IffManager.OpenResourceWindow(Content.Content.Get().WorldObjects.Get(objDialog.ResultGUID));
     }
 }
예제 #2
0
 private void NewOBJButton_Click(object sender, EventArgs e)
 {
     var iffDialog = new NewIffDialog();
     iffDialog.ShowDialog();
     if (iffDialog.DialogResult == DialogResult.OK)
     {
         var iff = iffDialog.InitIff;
         var objDialog = new NewObjectDialog(iff, true);
         objDialog.ShowDialog();
         if (objDialog.DialogResult == DialogResult.OK)
         {
             Browser.ObjectsModified();
             IffManager.OpenResourceWindow(Content.Content.Get().WorldObjects.Get(objDialog.ResultGUID));
         }
         else
             MessageBox.Show("Object creation cancelled! Iff will not be created.");
     }
 }