8using System.ComponentModel;
36 public HasBrokenRulesEventArgs(
string commandName,
bool hasErrors,
bool hasWarnings,
bool hasInformation,
bool autoShowBrokenRules)
37 : base(false, commandName)
39 _hasErrors = hasErrors;
40 _hasWarnings = hasWarnings;
41 _hasInformation = hasInformation;
42 _autoShowBrokenRules = autoShowBrokenRules;
66 public HasBrokenRulesEventArgs(
bool cancel,
string commandName,
bool hasErrors,
bool hasWarnings,
bool hasInformation,
bool autoShowBrokenRules)
67 : base(cancel, commandName)
69 _hasErrors = hasErrors;
70 _hasWarnings = hasWarnings;
71 _hasInformation = hasInformation;
72 _autoShowBrokenRules = autoShowBrokenRules;
75 private bool _hasErrors =
false;
76 private bool _hasWarnings =
false;
77 private bool _hasInformation =
false;
78 private bool _autoShowBrokenRules =
false;
86 get {
return _hasErrors; }
95 get {
return _hasWarnings; }
104 get {
return _hasInformation; }
113 get {
return _autoShowBrokenRules; }
Event args providing information about a canceled action.
Event args object containing information about a broken rule.
HasBrokenRulesEventArgs(string commandName, bool hasErrors, bool hasWarnings, bool hasInformation, bool autoShowBrokenRules)
Creates a new instance of the object.
bool HasErrors
Gets a value indicating whether an error severity rule exists.
bool HasInformation
Gets a value indicating whether an information severity rule exists.
HasBrokenRulesEventArgs(bool cancel, string commandName, bool hasErrors, bool hasWarnings, bool hasInformation, bool autoShowBrokenRules)
Creates a new instance of the object.
bool HasWarning
Gets a value indicating whether a warning severity rule exists.
bool AutoShowBrokenRules
Gets a value indicating whether to show broken rules.