Ejemplo n.º 1
0
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     foreach (Rectangle r in rects)
     {
         if (r.Contains(e.Location) && rects.IndexOf(r) == 0) // mailbox
         {
             mailbox mb = new mailbox();
             mb.Owner     = this;
             mb.MdiParent = MdiParent;
             mb.Show();
         }
         if (r.Contains(e.Location) && rects.IndexOf(r) == 1) // channels
         {
             channels chan = new channels();
             chan.Owner     = this;
             chan.MdiParent = MdiParent;
             chan.Show();
         }
         if (r.Contains(e.Location) && rects.IndexOf(r) == 2) // chat_list
         {
             chat_list cl = new chat_list();
             cl.Owner     = this;
             cl.MdiParent = MdiParent;
             cl.Show();
         }
         if (r.Contains(e.Location) && rects.IndexOf(r) == 3) // pictures
         {
             pictures p = new pictures();
             p.Owner     = this;
             p.MdiParent = MdiParent;
             p.Show();
         }
     }
 }
Ejemplo n.º 2
0
        private void mailCenterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (accForm.tmpUsername == "" || accForm.tmpUsername == "Guest")
            {
                return;
            }

            mailbox mb = new mailbox();

            mb.Owner     = (Form)this;
            mb.MdiParent = this;
            mb.Show();
        }
Ejemplo n.º 3
0
        private void read_mail_btn_Click(object sender, EventArgs e)
        {
            if (accForm.tmpUsername == "" || accForm.tmpUsername == "Guest")
            {
                return;
            }

            mailbox mb = new mailbox();

            mb.Owner     = (Form)this;
            mb.MdiParent = this;
            mb.Show();
        }