B2019-030 Use FlexableMesageBox instead of MessageBox so that it is always on top.
This commit is contained in:
@@ -16,6 +16,7 @@ using C1.Win.C1SpellChecker;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Xml.Serialization;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@@ -3050,7 +3051,7 @@ namespace Volian.Controls.Library
|
||||
msg = "Remove this column?";
|
||||
title = "Delete Column";
|
||||
}
|
||||
DialogResult dr = MessageBox.Show(msg, title, MessageBoxButtons.YesNo);
|
||||
DialogResult dr = FlexibleMessageBox.Show(msg, title, MessageBoxButtons.YesNo);
|
||||
if (dr == DialogResult.Yes)
|
||||
RemoveColumns(this.Selection.r1, this.Selection.c1, 1+this.Selection.c2-this.Selection.c1);
|
||||
else
|
||||
@@ -3075,7 +3076,7 @@ namespace Volian.Controls.Library
|
||||
msg = "Remove this row?";
|
||||
title = "Delete Row";
|
||||
}
|
||||
DialogResult dr = MessageBox.Show(msg, title, MessageBoxButtons.YesNo);
|
||||
DialogResult dr = FlexibleMessageBox.Show(msg, title, MessageBoxButtons.YesNo);
|
||||
if (dr == DialogResult.Yes)
|
||||
this.RemoveRows(this.Selection.r1, this.Selection.c1, 1 + this.Selection.r2 - this.Selection.r1);
|
||||
else
|
||||
@@ -3140,7 +3141,7 @@ namespace Volian.Controls.Library
|
||||
if (Selection.r1 != Selection.r2)
|
||||
{
|
||||
//dr = MessageBox.Show("You selected a row that includes merged cells.\n\nThese additional rows must be included.\n\nCopy these rows?", "Copy Rows", MessageBoxButtons.YesNo);
|
||||
dr = MessageBox.Show("Your selection was expanded due to merged cell regions.\n\nContinue with the copy?", "Copy Rows", MessageBoxButtons.YesNo);
|
||||
dr = FlexibleMessageBox.Show("Your selection was expanded due to merged cell regions.\n\nContinue with the copy?", "Copy Rows", MessageBoxButtons.YesNo);
|
||||
}
|
||||
if (dr == DialogResult.Yes)
|
||||
CopyToCopiedFlexGrid(GridCopyOption.Row);
|
||||
@@ -3154,7 +3155,7 @@ namespace Volian.Controls.Library
|
||||
if (Selection.c1 != Selection.c2)
|
||||
{
|
||||
//dr = MessageBox.Show("You selected a column that includes merged cells.\n\nThese additional columns must be included.\n\nCopy these columns?", "Copy Columns", MessageBoxButtons.YesNo);
|
||||
dr = MessageBox.Show("Your selection was expanded due to merged cell regions.\n\nContinue with the copy?", "Copy Columns", MessageBoxButtons.YesNo);
|
||||
dr = FlexibleMessageBox.Show("Your selection was expanded due to merged cell regions.\n\nContinue with the copy?", "Copy Columns", MessageBoxButtons.YesNo);
|
||||
}
|
||||
if (dr == DialogResult.Yes)
|
||||
CopyToCopiedFlexGrid(GridCopyOption.Column);
|
||||
@@ -3168,7 +3169,7 @@ namespace Volian.Controls.Library
|
||||
MakeSelectionEven();
|
||||
if (!cr.Equals(Selection))
|
||||
{
|
||||
dr = MessageBox.Show("Your selection was expanded due to merged cell regions.\n\nContinue with the copy?", "Copy Selection", MessageBoxButtons.YesNo);
|
||||
dr = FlexibleMessageBox.Show("Your selection was expanded due to merged cell regions.\n\nContinue with the copy?", "Copy Selection", MessageBoxButtons.YesNo);
|
||||
}
|
||||
if (dr == DialogResult.Yes)
|
||||
CopyToCopiedFlexGrid(GridCopyOption.Selection);
|
||||
@@ -3365,7 +3366,7 @@ namespace Volian.Controls.Library
|
||||
public void PasteCopiedCells()
|
||||
{
|
||||
// Warn the user that this type of paste will replace the currently selected (highlighted) table cells and give the option to abort.
|
||||
DialogResult dr = MessageBox.Show("This will replace the cells that are currently selected (highlighted). \n\nContinue with the paste?","Paste Table Cells",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
|
||||
DialogResult dr = FlexibleMessageBox.Show("This will replace the cells that are currently selected (highlighted). \n\nContinue with the paste?", "Paste Table Cells", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (dr == DialogResult.No) return;
|
||||
|
||||
int nSelRows = Selection.r2 - Selection.r1 + 1;
|
||||
|
Reference in New Issue
Block a user