public CefCommandLineArgment(string key, string value, UseAge useAge, Target target)
 {
     Key    = key;
     Value  = value;
     Used   = useAge;
     Target = target;
 }
Example #2
0
        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); });
            }
        }
Example #3
0
 public void Add(string key, string value, UseAge useAge, Target target)
 {
     Argments.Add(new CefCommandLineArgment(key, value, useAge, target));
 }