Exemplo n.º 1
0
 /// <summary>
 /// Creates ActionMonitorDefaults
 /// </summary>
 /// <param name="aMode">
 /// Mode for default setting <see cref="ActionMonitorDefaultsType"/>
 /// </param>
 public ActionMonitorDefaults(ActionMonitorDefaultsType aMode)
 {
     if ((aMode == ActionMonitorDefaultsType.Always) ||
         (aMode == ActionMonitorDefaultsType.NotNullTarget))
     {
         mode = aMode;
     }
     else
     {
         throw new Exception("ActionMonitorDefaults activated abnormally");
     }
     defaultValue = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates ActionMonitorDefaults
 /// </summary>
 /// <param name="aMode">
 /// Mode for default setting <see cref="ActionMonitorDefaultsType"/>
 /// </param>
 /// <param name="aDefaultValue">
 /// Value which needs to be set if DataSource is null and mode is NeedsValid <see cref="System.Boolean"/>
 /// </param>
 public ActionMonitorDefaults(ActionMonitorDefaultsType aMode, bool aDefaultValue)
 {
     mode         = aMode;
     defaultValue = aDefaultValue;
 }