コード例 #1
0
        public override void Execute()
        {
            ICore currentCore = null;

            if (Input[1] == CoreType.System.ToString())
            {
                currentCore = coreFactory.CreateSystemCore(Input);
            }
            else if (Input[1] == CoreType.Para.ToString())
            {
                currentCore = coreFactory.CreateParaCore(Input);
            }
            else
            {
                Console.WriteLine("Failed to create Core!");
                return;
            }
            this.Repository.Add(currentCore);
            Console.WriteLine(SuccessMessages.SuccessfullyCreatedCore, (char)(Global.CurrentCoreLetter - 1));
        }