private void button2_Click(object sender, EventArgs e) { PositionForm form = new PositionForm(); Close(); form.Show(); }
private void positionButton_Click(object sender, EventArgs e) { PositionForm form = new PositionForm(); Hide(); form.Show(); }
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; } }