FSO.IDE.MainWindow.NewOBJButton_Click C# (CSharp) Méthode

NewOBJButton_Click() private méthode

private NewOBJButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void
        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.");
            }
        }