/// <summary> /// Sets appllication message and notifies all Adaptors connected to /// this object to update their information /// </summary> /// <param name="aMsgType"> /// Message type <see cref="AppNotificationType"/> /// </param> /// <param name="aTitle"> /// Message title <see cref="System.String"/> /// </param> /// <param name="aText"> /// Message text <see cref="System.String"/> /// </param> /// <param name="aObject"> /// Object to be passed allong with message <see cref="System.Object"/> /// </param> public override bool Set(DebugNotificationType aMsgType, string aTitle, string aText, object aObject) { bool res = base.Set(aMsgType, aTitle, aText, aObject); if (res == true) { System.Data.Bindings.Notificator.ObjectChangedNotification(this); } return(res); }
/// <summary> /// Sets debug message with new values /// </summary> /// <param name="aMsgType"> /// Message type <see cref="AppNotificationType"/> /// </param> /// <param name="aTitle"> /// Message title <see cref="System.String"/> /// </param> /// <param name="aText"> /// Message text <see cref="System.String"/> /// </param> /// <param name="aObject"> /// Object to be passed allong with message <see cref="System.Object"/> /// </param> public virtual bool Set(DebugNotificationType aMsgType, string aTitle, string aText, object aObject) { if ((aMsgType == msgType) && (aTitle == titleString) && (aText == textString)) { return(false); } msgType = aMsgType; textString = aText; titleString = aTitle; titleloaded = false; textloaded = false; return(true); }
internal static AppNotificationType ToAppMsgType(DebugNotificationType aType) { switch (aType) { case DebugNotificationType.Critical: return(AppNotificationType.Critical); case DebugNotificationType.Custom: return(AppNotificationType.Custom); case DebugNotificationType.Error: return(AppNotificationType.Error); case DebugNotificationType.Information: return(AppNotificationType.Information); case DebugNotificationType.None: return(AppNotificationType.None); case DebugNotificationType.Question: return(AppNotificationType.Question); case DebugNotificationType.Suggestion: return(AppNotificationType.Suggestion); case DebugNotificationType.Warning: return(AppNotificationType.Warning); } return(AppNotificationType.None); }
/// <summary> /// Creates debug message /// </summary> /// <param name="aMsgType"> /// Message type <see cref="AppNotificationType"/> /// </param> /// <param name="aTitle"> /// Message title <see cref="System.String"/> /// </param> /// <param name="aText"> /// Message text <see cref="System.String"/> /// </param> /// <param name="aObject"> /// Object to be passed allong with message <see cref="System.Object"/> /// </param> public DebugNotification(DebugNotificationType aMsgType, string aTitle, string aText, object aObject) { Set(aMsgType, aTitle, aText, aObject); }