public static bool Exist(ActionsConfig config, string name) { foreach (Software software in config.ActionsApps) { if (software.Name == name) { 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 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; }