CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
HasBrokenRulesEventArgs.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="HasBrokenRulesEventArgs.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Event args object containing information about a</summary>
7//-----------------------------------------------------------------------
8using System.ComponentModel;
9
10namespace Csla.Windows
11{
17 {
36 public HasBrokenRulesEventArgs(string commandName, bool hasErrors, bool hasWarnings, bool hasInformation, bool autoShowBrokenRules)
37 : base(false, commandName)
38 {
39 _hasErrors = hasErrors;
40 _hasWarnings = hasWarnings;
41 _hasInformation = hasInformation;
42 _autoShowBrokenRules = autoShowBrokenRules;
43 }
44
66 public HasBrokenRulesEventArgs(bool cancel, string commandName, bool hasErrors, bool hasWarnings, bool hasInformation, bool autoShowBrokenRules)
67 : base(cancel, commandName)
68 {
69 _hasErrors = hasErrors;
70 _hasWarnings = hasWarnings;
71 _hasInformation = hasInformation;
72 _autoShowBrokenRules = autoShowBrokenRules;
73 }
74
75 private bool _hasErrors = false;
76 private bool _hasWarnings = false;
77 private bool _hasInformation = false;
78 private bool _autoShowBrokenRules = false;
79
84 public bool HasErrors
85 {
86 get { return _hasErrors; }
87 }
88
93 public bool HasWarning
94 {
95 get { return _hasWarnings; }
96 }
97
102 public bool HasInformation
103 {
104 get { return _hasInformation; }
105 }
106
112 {
113 get { return _autoShowBrokenRules; }
114 }
115
116 }
117}
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.