コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            PositionForm form = new PositionForm();

            Close();
            form.Show();
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: stepandanilov/PineappleV2
        private void positionButton_Click(object sender, EventArgs e)
        {
            PositionForm form = new PositionForm();

            Hide();
            form.Show();
        }
コード例 #3
0
        private void tsOrder_Click(object sender, EventArgs e)
        {
            switch ((sender as ToolStripMenuItem).Name)
            {
            case "tsOrder":
                if (!OrderForm.Created)
                {
                    OrderForm.Show(dockPanel1, DockState.Document);
                }
                OrderForm.Activate();
                break;

            case "tsCancel":
                if (!CancelForm.Created)
                {
                    CancelForm.Show(dockPanel1, DockState.Document);
                }
                CancelForm.Activate();
                break;

            case "tsMatch":
                if (!MatchForm.Created)
                {
                    MatchForm.Show(dockPanel1, DockState.Document);
                }
                MatchForm.Activate();
                break;

            case "tsError":
                if (!ErrForm.Created)
                {
                    ErrForm.Show(dockPanel1, DockState.Document);
                }
                ErrForm.Activate();
                break;

            case "tsSummary":
                if (!SummaryForm.Created)
                {
                    SummaryForm.Show(dockPanel1, DockState.Document);
                }
                SummaryForm.Activate();
                break;

            case "tsPosition":
                if (!PositionForm.Created)
                {
                    PositionForm.Show(dockPanel1, DockState.Document);
                }
                PositionForm.Activate();
                break;
            }
        }