Exemple #1
1
 private static void ExecuteOption(Param param, Process process)
 {
     Options option = param.Option;
     switch (option)
     {
         case Options.List:
             process.Print();
             break;
         case Options.Kill:
             process.Kill();
             break;
         case Options.Suspend:
             process.Suspend();
             break;
         case Options.Resume:
             process.Resume();
             break;
         default:
             throw new ArgumentException(argumentMessage);
     }
 }