Exemplo n.º 1
0
 /******Get x and y of seat after button click and forward to form*****/
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (RoomView.ChooseSeat(sender, main_form, availability))
     {
         Close();
         main_form.Show();
     }
 }
Exemplo n.º 2
0
        }                                              //list with buttons, which are in grid

        public Room3(RoomMainForm main_form, bool availability)
        {
            InitializeComponent();
            Buttons           = new List <Button>();
            this.availability = availability;
            this.main_form    = main_form;
            FillButtonTable();
            RoomView.Fill_grid(main_form, this);   /*Fill grid of buttons (seats) with colours in dependency of its status********/
        }
Exemplo n.º 3
0
 /****Display customer name and x,y of seat after mouse leave*****/
 private void Button_MouseEnter(object sender, MouseEventArgs e)
 {
     RoomView.DisplayTip(sender, main_form, availability);
 }