public string History(string type)
        {
            if (type == "Chip")
            {
                return(chipProcedure.History());
            }
            else if (type == "DentalCare")
            {
                return(dentalCareProcedure.History());
            }
            else if (type == "Fitness")
            {
                return(fitnessProcedure.History());
            }
            else if (type == "NailTrim")
            {
                return(nailTrimProcedure.History());
            }
            else if (type == "Play")
            {
                return(playProcedure.History());
            }
            else if (type == "Vaccinate")
            {
                return(vaccinateProcedure.History());
            }

            return(null);
        }
예제 #2
0
        public string History(string procedureType)
        {
            string result = null;

            if (procedureType == "Chip")
            {
                result = chip.History();
            }
            else if (procedureType == "Charge")
            {
                result = charge.History();
            }
            else if (procedureType == "Rest")
            {
                result = rest.History();
            }
            else if (procedureType == "Polish")
            {
                result = polish.History();
            }
            else if (procedureType == "Work")
            {
                result = work.History();
            }
            else if (procedureType == "TechCheck")
            {
                result = techCheck.History();
            }
            return(result);
        }
예제 #3
0
        public string History(string procedureType)
        {
            Enum.TryParse(procedureType, out ProcedureType procedureTypeEnum);
            IProcedure procedure = this.procedures[procedureTypeEnum];

            return(procedure.History().Trim());
        }
예제 #4
0
        public string History(string procedureType)
        {
            string output = string.Empty;

            if (procedureType == "Charge")
            {
                output = charge.History();
            }
            else if (procedureType == "Chip")
            {
                output = chip.History();
            }
            else if (procedureType == "Polish")
            {
                output = polish.History();
            }
            else if (procedureType == "Rest")
            {
                output = rest.History();
            }
            else if (procedureType == "TechCheck")
            {
                output = tech.History();
            }
            else if (procedureType == "Work")
            {
                output = work.History();
            }

            return(output);
        }
예제 #5
0
 public string History(string procedureType)
 {
     if (procedureType == nameof(Charge))
     {
         return(chargeProcedure.History());
     }
     else if (procedureType == nameof(Chip))
     {
         return(chipProcedure.History());
     }
     else if (procedureType == nameof(Polish))
     {
         return(polishProcedure.History());
     }
     else if (procedureType == nameof(Rest))
     {
         return(restProcedure.History());
     }
     else if (procedureType == nameof(TechCheck))
     {
         return(techCheckProcedure.History());
     }
     else if (procedureType == nameof(Work))
     {
         return(workProcedure.History());
     }
     else
     {
         return("FAIL");
     }
 }
예제 #6
0
        public string History(string procedureType)
        {
            IProcedure procedure = null;

            switch (procedureType)
            {
            case "Charge":
                procedure = ChargeProcedure;
                break;

            case "Chip":
                procedure = ChipProcedure;
                break;

            case "Polish":
                procedure = PolishProcedure;
                break;

            case "Rest:":
                procedure = RestProcedure;
                break;

            case "TechCheck":
                procedure = TechCheckProcedure;
                break;

            case "Work":
                procedure = WorkProcedure;
                break;
            }
            return(procedure.History());
        }
예제 #7
0
        public string History(string type)
        {
            string result = string.Empty;

            switch (type)
            {
            case "Chip":
                result = chip.History();
                break;

            case "DentalCare":
                result = dentailCare.History();
                break;

            case "Fitness":
                result = fitness.History();
                break;

            case "NailTrim":
                result = nailTrim.History();
                break;

            case "Play":
                result = play.History();
                break;

            case "Vaccinate":
                result = vaccinate.History();
                break;
            }
            return(result);
        }
예제 #8
0
        public string History(string type)
        {
            IProcedure procedure = null;

            switch (type)
            {
            case "Chip":
                procedure = chip; break;

            case "Vaccinate":
                procedure = vaccinate; break;

            case "Fitness":
                procedure = fitness; break;

            case "Play":
                procedure = play; break;

            case "DentalCare":
                procedure = dentalCare; break;

            case "NailTrim":
                procedure = nailTrim; break;
            }

            return(procedure.History());
        }
예제 #9
0
        public string History(string procedureType)
        {
            var sb = new StringBuilder();

            if (procedureType == "Chip")
            {
                sb.AppendLine(procedureChip.History());
            }
            else if (procedureType == "Charge")
            {
                sb.AppendLine(procedureCharge.History());
            }
            else if (procedureType == "Rest")
            {
                sb.AppendLine(procedureRest.History());
            }
            else if (procedureType == "Polish")
            {
                sb.AppendLine(procedurePolish.History());
            }
            else if (procedureType == "Work")
            {
                sb.AppendLine(procedureWork.History());
            }
            else if (procedureType == "TechCheck")
            {
                sb.AppendLine(procedureTeach.History());
            }

            return(sb.ToString().TrimEnd());
        }
예제 #10
0
        public string History(string procedureType)
        {
            // do not use check method here
            switch (procedureType)
            {
            case "Chip":
                return(procedureChip.History());

            case "Charge":
                return(procedureCharge.History());

            case "Rest":
                return(procedureRest.History());

            case "Polish":
                return(procedurePolish.History());

            case "Work":
                return(procedureWork.History());

            case "TechCheck":
                return(procedureTechCheck.History());
            }

            return(null);
        }
예제 #11
0
        public string History(string type)
        {
            IProcedure procedure = this.procedures.FirstOrDefault(x => x.GetType().Name == type);

            string result = procedure.History(type);

            return(result);
        }
        public string History(string procedureType)
        {
            Enum.TryParse(procedureType, out RobotProcedures currentProcedure);

            IProcedure procedure = this.procedures[currentProcedure];

            return(procedure.History().Trim());
        }
예제 #13
0
        public string History(string type)
        {
            if (!procedures.ContainsKey(type))
            {
                throw new ArgumentException("Invalid procedure type");
            }

            IProcedure p = procedures[type];

            return(p.History());
        }
예제 #14
0
        public string History(string procedureType)
        {
            IProcedure procedure = Procedures.FirstOrDefault(x => x.GetType().Name == procedureType);

            return(procedure.History());
        }
예제 #15
0
        public string History(string procedureType)
        {
            IProcedure procedure = this.procedures[procedureType];

            return(procedure.History());
        }
        public string History(string type)
        {
            IProcedure currentProcedure = this.procedures.FirstOrDefault(p => p.GetType().Name == type);

            return(currentProcedure.History());
        }