Example #1
0
    void Awake()
    {
        instance    = this;
        hospitalDir = DataTable.Instance.GetHospial();

        AddButtonEvent(mCancelObj, OnClickCancel);
    }
Example #2
0
        private static HospitalService _hospitalService; //Single instance of service class.
        #endregion

        #region Constructors
        /// <summary>
        /// Initialization of service class and associated view.
        /// </summary>
        public HospitalController()
        {
            //Create a new instance for the class of service
            //that has all the business rules.
            _hospitalService = new HospitalService();

            //Modify the controller of the main hospital view
            HospitalView.SetController(this);
            
            //Display the Hospital View
            HospitalView.Display();
        }