/// <summary>
        /// Notifies the user of an error and logs it for further analysis.
        /// </summary>
        /// <param name="argMessage">
        /// The argument message.
        /// </param>
        /// <param name="argErrorDetail">
        /// The argument error detail.
        /// </param>
        public void NotifyDialogBox(string argHeader, string argMessage, Dictionary <string, string> argErrorDetail)
        {
            if (argErrorDetail is null)
            {
                argErrorDetail = new Dictionary <string, string>();
            }

            ActionDialogArgs t = new ActionDialogArgs
            {
                Name = argHeader,
                Text = argMessage,
            };

            foreach (var item in argErrorDetail)
            {
                t.ItemDetails.Add(item.Key, item.Value);
            }

            NotifyDialogBox(t);

            //MajorStatusAdd(argMessage);

            //argErrorDetail.Add("Error", argMessage);

            //CommonLogging.LogError(argMessage, argErrorDetail);
        }
Beispiel #2
0
        /// <summary>
        /// Notifies the user of an error and logs it for further analysis.
        /// </summary>
        /// <param name="argMessage">
        /// The argument message.
        /// </param>
        /// <param name="argErrorDetail">
        /// The argument error detail.
        /// </param>
        public void NotifyDialogBox(string argHeader, string argMessage, Dictionary <string, string> argErrorDetail)
        {
            if (argErrorDetail is null)
            {
                argErrorDetail = new Dictionary <string, string>();
            }

            ActionDialogArgs t = new ActionDialogArgs
            {
                Name = argHeader,
                Text = argMessage
            };

            NotifyDialogBox(t);

            MajorStatusAdd(argMessage);

            argErrorDetail.Add("Error", argMessage);

            CommonLogging.LogError(argMessage, argErrorDetail);
        }
Beispiel #3
0
 /// <summary>
 /// Handle DialogBox messages.
 /// </summary>
 /// <param name="argADA">
 /// The message text.
 /// </param>
 public void NotifyDialogBox(ActionDialogArgs argADA)
 {
     // TODO not very clean but what to do when displaying messages before hub page is loaded
     _iocEventAggregator.GetEvent <DialogBoxEvent>().Publish(argADA);
 }