Beispiel #1
0
 public fRoom(fLogin login)
 {
     InitializeComponent();
     LoadRoomList();
     //m = main;
     fLoginCurrent = login;
 }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            fLogin _room = new fLogin();

            _room.ShowDialog();
            this.Show();
        }
Beispiel #3
0
 public MainMenu(fLogin f = null)
 {
     InitializeComponent();
     LoadRoom();
     LoadStatusOfRooms();
     LoadListRoom();
     fLoginCurrent = f;
     AddCustomerToBox();
 }
Beispiel #4
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (this.Opacity > 0.0)
     {
         this.Opacity -= 0.05;
     }
     else
     {
         timer1.Stop();
         fLogin f = new fLogin();
         f.ShowDialog();
     }
 }
Beispiel #5
0
        private void btnExit_Click(object sender, EventArgs e)
        {
            DialogResult rs = MessageBox.Show("Bạn có muốn thoát ?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (rs == DialogResult.Yes)
            {
                Application.Exit();
            }
            else
            {
                fLogin f = new fLogin();
                f.ShowDialog();
            }
        }