Exemplo n.º 1
0
 public void clos()
 {
     MessageBox.Show("Номер успешно забронирован!");
     GuestCommands.sendUpdateBook(CurrentProfile.me.id);
     AllForms.menuGuest.Show();
     this.Close();
 }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            bool flag = false;

            foreach (var book in CurrentProfile.bookings)
            {
                if (book.id == Int32.Parse(textBox1.Text))
                {
                    flag = true;
                    break;
                }
            }
            if (!flag)
            {
                MessageBox.Show("Не найден текущий Id");
            }
            else
            {
                GuestCommands.sendCancel(Int32.Parse(textBox1.Text));
                MessageBox.Show("Бронь успешно отменена!");
                GuestCommands.sendUpdateBook(CurrentProfile.me.id);
                AllForms.menuGuest.Show();
                this.Close();
            }
        }
Exemplo n.º 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (!CurrentProfile.updBook)
     {
         CurrentProfile.updBook  = true;
         CurrentProfile.windOpen = 1;
         GuestCommands.sendUpdateBook(CurrentProfile.me.id);
     }
     else
     {
         AllForms.infoBooking = new InfoBooking();
         AllForms.infoBooking.Show();
         this.Hide();
     }
 }