Beispiel #1
0
        public static bool Exist(ActionsConfig config, string name)
        {
            foreach (Software software in config.ActionsApps)
            {
                if (software.Name == name)
                {
                    return(true);
                }
            }

            return(false);
        }
Beispiel #2
0
        public static Software GetByName(ActionsConfig config, string name)
        {
            foreach (Software software in config.ActionsApps)
            {
                if (software.Name == name)
                {
                    return(software);
                }
            }

            return(null);
        }
Beispiel #3
0
 public static bool Remove(ActionsConfig config, string name)
 {
     if (Exist(config, name))
     {
         foreach (Software software in config.ActionsApps)
         {
             if (software.Name == name)
             {
                 config.ActionsApps.Remove(software);
                 return(true);
             }
         }
     }
     return(false);
 }
 public static bool Remove(ActionsConfig config, string name)
 {
     if (Exist(config, name))
     {
         foreach (Software software in config.ActionsApps)
         {
             if (software.Name == name)
             {
                 config.ActionsApps.Remove(software);
                 return true;
             }
         }
     }
     return false;
 }
        public static Software GetByName(ActionsConfig config, string name)
        {
            foreach (Software software in config.ActionsApps)
            {
                if (software.Name == name) return software;
            }

            return null;
        }
        public static bool Exist(ActionsConfig config, string name)
        {
            foreach (Software software in config.ActionsApps)
            {
                if (software.Name == name) return true;
            }

            return false;
        }
 public ActionsUI(ActionsConfig config)
 {
     InitializeComponent();
     Config = config;
 }
Beispiel #8
0
 public ActionsUI(ActionsConfig config)
 {
     InitializeComponent();
     Config = config;
 }