Exemplo n.º 1
0
        public void ShowMessage(MessageItem message)
        {
            var messageBox = new IOPMessageBox(Application.Current.MainWindow);
            messageBox.DataContext = message;
            var result = messageBox.ShowDialog();

            if (message.Callback != null)
            {
                message.Callback(new MessageResult(result.Value));
            }
        }