Exemplo n.º 1
0
        public void NotifyError(string argMessage, Dictionary <string, string> argErrorDetail)
        {
            if (argErrorDetail is null)
            {
                argErrorDetail = new Dictionary <string, string>();
            }

            CommonLogging.LogError(argMessage, argErrorDetail);

            NotifyDialogBox("Error", argMessage, argErrorDetail);
        }
Exemplo n.º 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);
        }