コード例 #1
0
 public override void SelectConcept(Enum concept)
 {
     base.SelectConcept(concept);
     switch ((EventsAndCallbacksConceptsList)concept)
     {
         case EventsAndCallbacksConceptsList.BasicDelegateExample:
             conceptExecutionClass = new DelegatesExamples();
             break;
         case EventsAndCallbacksConceptsList.EventUsingAction:
             conceptExecutionClass = new EventUsingAction();
             break;
         case EventsAndCallbacksConceptsList.EventInheritanceExample:
             conceptExecutionClass = new EventInheritanceExample();
             break;
     }
 }
コード例 #2
0
        public override void SelectConcept(Enum concept)
        {
            base.SelectConcept(concept);
            switch ((EventsAndCallbacksConceptsList)concept)
            {
            case EventsAndCallbacksConceptsList.BasicDelegateExample:
                conceptExecutionClass = new DelegatesExamples();
                break;

            case EventsAndCallbacksConceptsList.EventUsingAction:
                conceptExecutionClass = new EventUsingAction();
                break;

            case EventsAndCallbacksConceptsList.EventInheritanceExample:
                conceptExecutionClass = new EventInheritanceExample();
                break;
            }
        }