Esempio n. 1
0
 private static string RollCallRating(Transformer transformer)
 {
     return($"{transformer.Rating} - {transformer.Name}");
 }
Esempio n. 2
0
 private static string RollCallAffiliation(Transformer transformer)
 {
     return($"{transformer.Name} is a {transformer.Affiliation}");
 }
Esempio n. 3
0
 private static string RollCallAlternateForm(Transformer transformer)
 {
     return(transformer.AlternateForm);
 }
Esempio n. 4
0
        // // Rollcall 1
        //foreach (var transformer in AllTransformers)
        //{
        //	if (SelectedRollCallOption.Name == "Name")
        //	{
        //		Results.Add(transformer.RollCall(RollCallName));
        //	}
        //	else if (SelectedRollCallOption.Name == "Affiliation")
        //	{
        //		Results.Add(transformer.RollCall(RollCallAffiliation));
        //	}
        //	else if (SelectedRollCallOption.Name == "Alternate Form")
        //	{
        //		Results.Add(transformer.RollCall(RollCallAlternateForm));
        //	}
        //	else if (SelectedRollCallOption.Name == "Rating")
        //	{
        //		Results.Add(transformer.RollCall(RollCallRating));
        //	}
        //}

        // // Rollcall 2 (with variable)
        //RollCallDelegate rollcallMethod = null;
        //
        //if (SelectedRollCallOption.Name == "Name")
        //{
        //    rollcallMethod = RollCallName;
        //}
        //else if (SelectedRollCallOption.Name == "Affiliation")
        //{
        //    rollcallMethod = RollCallAffiliation;
        //}
        //else if (SelectedRollCallOption.Name == "Alternate Form")
        //{
        //    rollcallMethod = RollCallAlternateForm;
        //}
        //else if (SelectedRollCallOption.Name == "Rating")
        //{
        //    rollcallMethod = RollCallRating;
        //}
        //
        //foreach (var transformer in AllTransformers)
        //{
        //    transformer.RollCall(rollcallMethod);
        //}

        // // Rollcall 3 (with func)
        //foreach (var transformer in AllTransformers)
        //{
        //	Results.Add(SelectedRollcallOption.RollCallResponse(transformer));
        //}

        #region RollCall Methods
        private static string RollCallName(Transformer transformer)
        {
            return(transformer.Name);
        }