Пример #1
0
 public void AddMessage(WindowProcessMessage message)
 {
     Application.Current.Dispatcher.BeginInvoke(
         (Action)(() =>
     {
         Messages.Add(message);
     })
         );
 }
Пример #2
0
        public Boolean AddQuestion(String text, String desc = null)
        {
            Boolean result = WindowMessageBox.ShowQuestion(text);

            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Blank, text, desc);

            AddMessage(message);

            text = (result == true) ? "Да" : "Нет";
            AddMessage(new WindowProcessMessage(WindowProcessMessageTyp.Blank, text, null));

            return(result);
        }
Пример #3
0
        public void AddBlank(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Blank, text, desc);

            AddMessage(message);
        }
Пример #4
0
        public void AddInfo(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Info, text, desc);

            AddMessage(message);
        }
Пример #5
0
        public void AddWarning(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Warning, text, desc);

            AddMessage(message);
        }
Пример #6
0
        public void AddError(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Error, text, desc);

            AddMessage(message);
        }
Пример #7
0
        public void AddBlank(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Blank, text, desc);

            AddMessage(message);
        }
Пример #8
0
        public void AddWarning(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Warning, text, desc);

            AddMessage(message);
        }
Пример #9
0
        public Boolean AddQuestion(String text, String desc = null)
        {
            Boolean result = WindowMessageBox.ShowQuestion(text);

            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Blank, text, desc);
            AddMessage(message);

            text = (result == true) ? "Да" : "Нет";
            AddMessage(new WindowProcessMessage(WindowProcessMessageTyp.Blank, text, null) );

            return result;
        }
Пример #10
0
 public void AddMessage(WindowProcessMessage message)
 {
     Application.Current.Dispatcher.BeginInvoke(
         (Action)(() =>
         {
             Messages.Add(message);
         })
     );
 }
Пример #11
0
        public void AddInfo(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Info, text, desc);

            AddMessage(message);
        }
Пример #12
0
        public void AddError(String text, String desc = null)
        {
            WindowProcessMessage message = new WindowProcessMessage(WindowProcessMessageTyp.Error, text, desc);

            AddMessage(message);
        }