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

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

            return(null);
        }
예제 #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);
 }
예제 #4
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;
 }
예제 #5
0
        public static Software GetByName(ActionsConfig config, string name)
        {
            foreach (Software software in config.ActionsApps)
            {
                if (software.Name == name) return software;
            }

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

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