public CefCommandLineArgment(string key, string value, UseAge useAge, Target target) { Key = key; Value = value; Used = useAge; Target = target; }
public static void SetArgments(UseAge use, Target target, Action <CefCommandLineArgment> action) { var findArgments = CommandLineArgments.Argments.Where(o => use.HasFlag(o.Used) && target.HasFlag(o.Target) && TypeExtension.IsValid((string)o.Key)); if (findArgments.Any()) { findArgments.ForEach(p => { action(p); }); } }
public void Add(string key, string value, UseAge useAge, Target target) { Argments.Add(new CefCommandLineArgment(key, value, useAge, target)); }