public void RunFeature(string featureName)
        {
            switch (featureName)
            {
            case "Feature1": MyAlgorithms.AccessFeature1();
                break;

            case "Feature2": MyAlgorithms.AccessFeature2();
                break;

            case "Feature3": MyAlgorithms.AccessFeature3();
                break;

            default:
                throw new ArgumentOutOfRangeException("featureName");
            }
            LastSuccessfulFeatureExecutionMessage = string.Format("{0} accessed successfully", featureName);
        }
Example #2
0
 void RunFeature2_Click(object sender, RoutedEventArgs e)
 {
     MyAlgorithms.AccessFeature2();
     NotifyUser("Feature 2 accessed successfully");
 }