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

            f.Show();
            this.Hide();
        }
示例#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));
 }
示例#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;
 }
示例#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;
 }
示例#8
0
 public Sign_up(all_restaurants f, string source)
 {
     InitializeComponent();
     s     = source;
     past1 = f;
 }
示例#9
0
 public my_reservations(all_restaurants f, string source)
 {
     InitializeComponent();
     s     = source;
     past1 = f;
 }
 public My_Profile(all_restaurants _past, string source)
 {
     InitializeComponent();
     past = _past;
     s    = source;
 }
示例#11
0
 public Form1(all_restaurants a)
 {
     InitializeComponent();
     past1 = a;
 }