コード例 #1
0
ファイル: ControlBarForm.cs プロジェクト: sonygod/dotahit
        private void unitsB_Click(object sender, EventArgs e)
        {
            if (Current.map == null)
            {
                MessageBox.Show("Load a map first");
                return;
            }

            if (unitsForm == null)
            {
                unitsForm       = new UnitsForm();
                unitsForm.Owner = this;
            }

            unitsForm.Visible = !unitsForm.Visible;
        }
コード例 #2
0
ファイル: ControlBarForm.cs プロジェクト: sonygod/dotahit
        private void unitsB_Click(object sender, EventArgs e)
        {
            if (Current.map == null)
            {
                MessageBox.Show("Load a map first");
                return;
            }

            if (unitsForm == null)
            {
                unitsForm = new UnitsForm();
                unitsForm.Owner = this;
            }

            unitsForm.Visible = !unitsForm.Visible;
        }