private void RulesEngineModalDialog(object sender, ModalDialogEventArgs args) { if (InFullscreenMode) { return; } BuildFailedMessageBox.ShowOnce("Siren of Shame", args.DialogText, args.OkText); }
public static void ShowOnce(string title, string body, string okMessage) { Program.Form.Invoke(() => { if (_buildFailedMessageBox == null) { _buildFailedMessageBox = new BuildFailedMessageBox(); } _buildFailedMessageBox.Text = title; if (!string.IsNullOrEmpty(okMessage)) _buildFailedMessageBox._ok.Text = okMessage; _buildFailedMessageBox._body.Text = body; _buildFailedMessageBox.Show(); _buildFailedMessageBox.Activate(); }); }
public static void ShowOnce(string title, string body, string okMessage) { Program.Form.Invoke(() => { if (_buildFailedMessageBox == null) { _buildFailedMessageBox = new BuildFailedMessageBox(); } _buildFailedMessageBox.Text = title; if (!string.IsNullOrEmpty(okMessage)) { _buildFailedMessageBox._ok.Text = okMessage; } _buildFailedMessageBox._body.Text = body; _buildFailedMessageBox.Show(); _buildFailedMessageBox.Activate(); }); }