コード例 #1
0
 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();
     }
 }
コード例 #2
0
 //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;
     }
 }
コード例 #3
0
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EmailAndChat emp = new EmailAndChat();

            emp.Show();
        }