public register_Restaurant(Sign_up s_u, all_restaurants f, string source)
 {
     InitializeComponent();
     temp_past = s_u;
     past2     = f;
     s         = source;
 }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            /*
             *  CODE HERE
             */
            all_restaurants f = new all_restaurants(this, "Home");

            f.Show();
            this.Hide();
        }
Exemplo n.º 3
0
 public Restaurant_Profile(string source, all_restaurants a_r, string _res_name)
 {
     InitializeComponent();
     s               = source;
     past            = a_r;
     res_name        = _res_name;
     button6.Visible = true;
     button7.Visible = false;
     button8.Visible = false;
     flowLayoutPanel1.Controls.Add(new Overview(res_name));
 }
Exemplo n.º 4
0
 public making_reservation(string source, all_restaurants a_r, string _res_name, string _date, string _time, int _number_of_people, int _dining_points)
 {
     InitializeComponent();
     past             = a_r;
     res_name         = _res_name;
     date             = _date;
     time             = _time;
     number_of_people = _number_of_people;
     dining_points    = _dining_points;
     s = source;
 }
Exemplo n.º 5
0
        private void button2_Click(object sender, EventArgs e)
        {
            //MessageBox.Show(  bunifuDropdown2.selectedValue);
            int number_of_people = 0;

            if (bunifuDropdown1.selectedIndex != -1)
            {
                number_of_people = Convert.ToInt32(bunifuDropdown1.selectedValue.Split(' ')[0]);
            }
            all_restaurants a = new all_restaurants(this, "Home", bunifuDatepicker1.Value.ToShortDateString(), bunifuDropdown2.selectedValue, number_of_people);

            a.Show();
            this.Hide();
        }
 public Restaurant_admin(all_restaurants f, string s, string res_name)
 {
     InitializeComponent();
     past1            = f;
     source           = s;
     resname          = res_name;
     button6.Visible  = true;
     button7.Visible  = false;
     button8.Visible  = false;
     button2.Visible  = false;
     button12.Visible = false;
     button13.Visible = false;
     button14.Visible = false;
 }
 public specific_time(all_restaurants a_r, string _res_name, string _date, string _time, int _number_of_people, int _points)
 {
     InitializeComponent();
     button2.Text = _time;
     if (_points == 0)
     {
         this.Height = button2.Height + 10;
     }
     else
     {
         label1.Text = "+ " + _points.ToString();
     }
     res_name         = _res_name;
     number_of_people = _number_of_people;
     date             = _date;
     time             = _time;
     dining_points    = _points;
     past             = a_r;
 }
Exemplo n.º 8
0
 public Sign_up(all_restaurants f, string source)
 {
     InitializeComponent();
     s     = source;
     past1 = f;
 }
Exemplo n.º 9
0
 public my_reservations(all_restaurants f, string source)
 {
     InitializeComponent();
     s     = source;
     past1 = f;
 }
Exemplo n.º 10
0
 public My_Profile(all_restaurants _past, string source)
 {
     InitializeComponent();
     past = _past;
     s    = source;
 }
Exemplo n.º 11
0
 public Form1(all_restaurants a)
 {
     InitializeComponent();
     past1 = a;
 }