public ProgramConfig FindOrCreate(string name, string defaultCommand)
        {
            if (Programs.ContainsKey(name))
            {
                return(Programs[name]);
            }
            var result = new ProgramConfig(name, defaultCommand);

            Programs[name] = result;
            return(result);
        }
Esempio n. 2
0
 public ProgramConfig FindOrCreate(string name, string defaultCommand)
 {
   if (Programs.ContainsKey(name))
   {
     return Programs[name];
   }
   var result = new ProgramConfig(name, defaultCommand);
   Programs[name] = result;
   return result;
 }