Ejemplo n.º 1
0
 public Keys[] GetActionKeys(string actionName)
 {
     try
     {
         string[] keyValues = iniFile.GetSectionValues(actionName);
         if (keyValues == null)
         {
             return(new Keys[0]);
         }
         else
         {
             Keys[] result = new Keys[keyValues.Length];
             for (int i = 0; i < keyValues.Length; i++)
             {
                 result[i] = StringToKeys(keyValues[i]);
             }
             keyValues = null;
             return(result);
         }
     }
     catch
     {
         return(new Keys[0]);
     }
 }