Пример #1
0
        public static Stand Initialising_Stand(int id)
        {
            Stand[] array = new Stand[6];
            array[0]                  = new Stand();
            array[0].Stand_id         = 1;
            array[0].name             = "Fox Road Stand";
            array[0].seating_capacity = 5000;


            array[1]                  = new Stand();
            array[1].Stand_id         = 2;
            array[1].name             = "Radcliffe Road Stand";
            array[1].seating_capacity = 10000;


            array[2]                  = new Stand();
            array[2].Stand_id         = 3;
            array[2].name             = "William Clark Stand";
            array[2].seating_capacity = 5000;


            array[3]                  = new Stand();
            array[3].Stand_id         = 4;
            array[3].name             = "New Stand";
            array[3].seating_capacity = 35000;


            array[4]                  = new Stand();
            array[4].Stand_id         = 5;
            array[4].name             = "Hound Road Stand";
            array[4].seating_capacity = 10000;


            return(array[id]);
        }
        private void Stand1_Click(object sender, EventArgs e)
        {
            Stand        s      = Stand.Initialising_Stand(0);
            DialogResult result = MessageBox.Show("Are You Sure", "Confirmatin", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);

            this.Hide();
            if (result == DialogResult.OK)
            {
                Customer_Information.Get_Stand_id(s);

                Stand_Level sl = new Stand_Level();
                sl.When_form_Load(s);

                sl.Show();
            }
            else
            {
                this.Show();
            }
        }
Пример #3
0
 public void When_form_Load(Stand S)
 {
     Stand_Id   = S.Stand_id;
     Stand_Name = S.name;
 }
 public static void Get_Stand_id(Stand s)
 {
     Stand_id = s.Stand_id;
 }