private void chatDown(object sender, MouseEventArgs e) { panelEmailAndChat.BackColor = Color.FromArgb(110, 116, 10); hideAllTab(); if (emailAndChat == null) { emailAndChat = new EmailAndChat(); emailAndChat.MdiParent = this; this.splitContainer1.Panel2.Controls.Add(emailAndChat); //notification.FormClosed += notification_FormClosed; emailAndChat.Show(); } else { employeeForm.Activate(); } }
//hide all tab public void hideAllTab() { if (employeeForm != null) { employeeForm.Close(); employeeForm = null; } if (emailAndChat != null) { emailAndChat.Close(); emailAndChat = null; } if (notificationForm != null) { notificationForm.Close(); notificationForm = null; } if (employeeReprt != null) { employeeReprt.Close(); employeeReprt = null; } }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { EmailAndChat emp = new EmailAndChat(); emp.Show(); }