public static bool IsValid(this INZazuWpfView view)
 {
     if (view == null)
     {
         throw new ArgumentNullException(nameof(view));
     }
     return(view.Validate().IsValid);
 }
        public static void SetFieldValues(this INZazuWpfView view,
                                          IEnumerable <KeyValuePair <string, string> > fieldValues)
        {
            if (view == null)
            {
                throw new ArgumentNullException(nameof(view));
            }
            if (fieldValues == null)
            {
                throw new ArgumentNullException(nameof(fieldValues));
            }
            foreach (var kvp in fieldValues)
            {
                if (!view.TryGetField(kvp.Key, out var field))
                {
                    continue;
                }
                field.SetValue(kvp.Value);
            }

            view.Validate();
        }