コード例 #1
0
ファイル: Menu.cs プロジェクト: DavidDias-Developer/PT-Hotel
        //Login
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            pictureBox5.Image   = WindowsFormsApplication1.Properties.Resources.reservalocked;
            pictureBox5.Enabled = false;
            Reservas f7 = new Reservas();

            f7.Show();
            f7.MdiParent = this;
            f7.Location  = new Point(0, 0);
        }
コード例 #2
0
 //Abre as Reservas
 private void pictureBox5_Click(object sender, EventArgs e)
 {
     men1 = getprinc;
     if (men1 == 0)
     {
         Reservas f7 = new Reservas();
         f7.Show();
         f7.MdiParent = this;
         f7.Location  = new Point(0, 0);
     }
     else
     {
         MessageBox.Show("Já existe uma janela aberta");
     }
     men1             = 1;
     Reservas.getmenu = men1;
 }