示例#1
0
        //Consturctor is a special method that is automatically called
        // when an instance of the class is created by using the keyword new.
        //It is a good place for initializations and creation of
        // the objects that are used as fields, e.g m_seatMngr
        public MainForm2b()
        {
            //visual studio generated method
            InitializeComponent();

            //my initialization method
            m_seatMngr = new SeatManager(m_numOfRows,m_numOfCols);
            InitializeGUI();
        }
示例#2
0
        //Consturctor is a special method that is automatically called
        // when an instance of the class is created by using the keyword new.
        //It is a good place for initializations and creation of
        // the objects that are used as fields, e.g m_seatMngr

        public MainForm2a()
        {
            //visual studio generated method
            InitializeComponent();

            //my initialization method
            m_seatMngr = new SeatManager(m_numOfSeats);
            InitializeGUI();
        }