Пример #1
0
        private void NPCsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!CheckServerLocation())
            {
                return;
            }

            if (npcs.Visible)
            {
                npcs.Focus();
                return;
            }
            else
            {
                npcs = new NPCs();
            }

            npcs.FormClosed += (object s, FormClosedEventArgs fcea) =>
            {
                if (npcs.GetChanged())
                {
                    RestartServerOnChange("NPCs");
                }
            };

            npcs.Show();
        }