CEngineSharp_Editor.EditorSuite.npcEditorToolStripMenuItem_Click C# (CSharp) Method

npcEditorToolStripMenuItem_Click() private method

private npcEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void npcEditorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.npcEditor == null)
            {
                if (string.IsNullOrEmpty(this.dataPath))
                    LoadDataPath();

                this.npcEditor = new NpcEditor(this.dataPath);
                this.npcEditor.Disposed += npcEditor_Disposed;
                this.npcEditor.MdiParent = this;
                this.npcEditor.Show();
            }
        }