public void OpenPopupMessage(string text, PlotterCallback.MessageType messageType) { Application.Current.Dispatcher.Invoke(() => { if (PopupMessage.IsOpen) { return; } PopupMessageIcon.Source = SelectPopupMessageIcon(messageType); PopupMessageText.Text = text; PopupMessage.IsOpen = true; }); }
ImageSource SelectPopupMessageIcon(PlotterCallback.MessageType type) { return(PopupMessageIcons[(int)type]); }
public void OpenPopupMessage(string text, PlotterCallback.MessageType type) { Controller.Callback.OpenPopupMessage(text, type); }