Beispiel #1
0
        //Quartos
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            pictureBox3.Image   = WindowsFormsApplication1.Properties.Resources.QuartosLocked;
            pictureBox3.Enabled = false;
            Quartos f5 = new Quartos();

            f5.Show();
            f5.MdiParent = this;
            f5.Location  = new Point(0, 0);
        }
Beispiel #2
0
 //Abre os Quartos
 private void pictureBox3_Click(object sender, EventArgs e)
 {
     men1 = getprinc;
     if (men1 == 0)
     {
         Quartos f5 = new Quartos();
         f5.Show();
         f5.MdiParent = this;
         f5.Location  = new Point(0, 0);
     }
     else
     {
         MessageBox.Show("Já existe uma janela aberta");
     }
     men1            = 1;
     Quartos.getmenu = men1;
 }