private void buttonOperator_Click(object sender, EventArgs e) { ChangeView = true; OperatorView OperatorWindow = new OperatorView(); OperatorWindow.Show(); this.Close(); }
private void labelOperatorTab_Click(object sender, EventArgs e) { labelSelectViewPrompt.Visible = false; if (this.ActiveMdiChild != null && this.ActiveMdiChild.Text.ToString() == "Tier View") { this.ActiveMdiChild.Close(); } OperatorView operatorMDIChild = new OperatorView(); // Set the Parent Form of the Child window. operatorMDIChild.MdiParent = this; // Display the new form. operatorMDIChild.Show(); operatorMDIChild.Location = new Point(12, 45); labelOperatorTab.BackColor = System.Drawing.Color.LightSteelBlue; labelTierTab.BackColor = System.Drawing.Color.Yellow; labelOperatorTab.Enabled = false; labelTierTab.Enabled = true; }