Beispiel #1
0
Datei: View.cs Projekt: dpx3/Q2
        public override bool AddProduct(USER_TYPE userType, string name, double price, int quantity)
        {
            if (userType == USER_TYPE.EXECUTIVE)
            {
                ExecView execView = new ExecView();
                return(execView.AddProduct(userType, name, price, quantity));
            }

            return(false);
        }
Beispiel #2
0
Datei: View.cs Projekt: dpx3/Q2
        public override List <Product> GetData(USER_TYPE userType, Boolean isSignificant, Boolean isSales, Boolean isSorted)
        {
            if (userType == USER_TYPE.EXECUTIVE)
            {
                ExecView execView = new ExecView();
                return(execView.GetData(userType, isSignificant, isSales, isSorted));
            }

            return(null);
        }