B2019-030 Use FlexableMesageBox instead of MessageBox so that it is always on top.
This commit is contained in:
parent
7e4770d76d
commit
17260519e3
@ -5,6 +5,7 @@ using System.Windows.Forms;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Drawing;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
// This was moved from volian.controls.library
|
||||
namespace VEPROMS.CSLA.Library
|
||||
@ -2220,7 +2221,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (!DidMsgBox) // only put the message box out once.
|
||||
{
|
||||
DidMsgBox = true;
|
||||
MessageBox.Show(string.Format("{0} does not have Referenced Object Path set.",myDocVersion.MyFolder.Name), "No RO Path Set", MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show(string.Format("{0} does not have Referenced Object Path set.", myDocVersion.MyFolder.Name), "No RO Path Set", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
}
|
||||
return myROFst==null?false:myROFst.IsSetpointDB(dbid, myDocVersion);
|
||||
|
@ -83,7 +83,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
else
|
||||
MessageBox.Show(ex.Message, "SQL Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show(ex.Message, "SQL Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -536,7 +536,7 @@ namespace VEPROMS.CSLA.Library
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (!HandleSqlExceptionOnCopy(ex))
|
||||
System.Windows.Forms.MessageBox.Show("Details were written to the Error Log.", "Paste Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
FlexibleMessageBox.Show("Details were written to the Error Log.", "Paste Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@ -551,7 +551,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (DestType >= 20000 && DestType != SourceType)
|
||||
{
|
||||
string msg = "The step you are copying TO is a different type than the step you are copying FROM.\n\nThe copied step will inherit the destination step type.\n\nOnce copied, the step type can be changed from the Tags tab on the Step Properties panel.";
|
||||
MessageBox.Show(msg, "Different Step Types", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show(msg, "Different Step Types", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
// B2016-009 - added a message box explaining to the user that the copyed step will take on the destination type. 16-bit PROMS had also done this way.
|
||||
@ -561,7 +561,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (DestType >= 20000 && DestType != SourceType)
|
||||
{
|
||||
string msg = "The step you are copying TO is a different type than the step you are copying FROM.\n\nThe copied step will inherit the destination step type.\n\nOnce copied, the step type can be changed from the Tags tab on the Step Properties panel.";
|
||||
MessageBox.Show(msg, "Different Step Types", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show(msg, "Different Step Types", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
public ItemInfo PasteSiblingBefore(int copyStartID, string chgid)
|
||||
@ -586,7 +586,7 @@ namespace VEPROMS.CSLA.Library
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (!HandleSqlExceptionOnCopy(ex))
|
||||
System.Windows.Forms.MessageBox.Show("Details were written to the Error Log.","Paste Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
FlexibleMessageBox.Show("Details were written to the Error Log.", "Paste Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@ -617,7 +617,7 @@ namespace VEPROMS.CSLA.Library
|
||||
catch (Exception ex)
|
||||
{
|
||||
if(!HandleSqlExceptionOnCopy(ex))
|
||||
System.Windows.Forms.MessageBox.Show("Details were written to the Error Log.", "Paste Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
FlexibleMessageBox.Show("Details were written to the Error Log.", "Paste Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@ -630,13 +630,13 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
if (ex.Message.Contains("This step has been deleted"))
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("The step being pasted has been deleted!", "Cannot Paste Deleted Step"
|
||||
FlexibleMessageBox.Show("The step being pasted has been deleted!", "Cannot Paste Deleted Step"
|
||||
, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Hand);
|
||||
return true;
|
||||
}
|
||||
if(ex.Message.Contains("This current step has been deleted in another session"))
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("The highlighted step has been deleted by another user!", "Cannot Paste Step"
|
||||
FlexibleMessageBox.Show("The highlighted step has been deleted by another user!", "Cannot Paste Step"
|
||||
, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Hand);
|
||||
return true;
|
||||
}
|
||||
@ -2440,7 +2440,7 @@ namespace VEPROMS.CSLA.Library
|
||||
|| ex.Message.Contains("This step has been deleted")
|
||||
)
|
||||
throw ex;
|
||||
System.Windows.Forms.MessageBox.Show("Details were written to the Error Log.", "Paste Replace Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
FlexibleMessageBox.Show("Details were written to the Error Log.", "Paste Replace Failed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
|
||||
return itemInfo;
|
||||
}
|
||||
else
|
||||
@ -2452,13 +2452,13 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (ex.Message.Contains("This step has been deleted"))
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("The step being pasted has been deleted!", "Cannot Paste Deleted Step"
|
||||
FlexibleMessageBox.Show("The step being pasted has been deleted!", "Cannot Paste Deleted Step"
|
||||
, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Hand);
|
||||
return true;
|
||||
}
|
||||
if (ex.Message.Contains("This current step has been deleted in another session"))
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("The highlighted step has been deleted by another user!", "Cannot Paste Step"
|
||||
FlexibleMessageBox.Show("The highlighted step has been deleted by another user!", "Cannot Paste Step"
|
||||
, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Hand);
|
||||
return true;
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ using System.Data.SqlClient;
|
||||
using System.Text.RegularExpressions;
|
||||
using Csla;
|
||||
using Csla.Data;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
@ -806,8 +807,8 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex.Message.Contains("Could not find stored procedure"))
|
||||
System.Windows.Forms.MessageBox.Show("Have your DBA run the latest version of PROMSFixes.SQL", "SQL code is not current", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
|
||||
if (ex.Message.Contains("Could not find stored procedure"))
|
||||
FlexibleMessageBox.Show("Have your DBA run the latest version of PROMSFixes.SQL", "SQL code is not current", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ using System.Data.SqlClient;
|
||||
using Csla;
|
||||
using Csla.Data;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
@ -321,11 +322,11 @@ namespace VEPROMS.CSLA.Library
|
||||
SetAssociationLastCompleted(docver, DateTime.Now.ToString()); // RO Update completed successfully and un-interrupted, save the date/time to the Doc Version Association config
|
||||
myProgressBarRefresh(100, 100, "RO Update Complete"); // update the progress bar
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
// pop up a message window telling the user the RO Update has completed and now many ROs were updated
|
||||
// pop up a message window telling the user the RO Update has completed and how many ROs were updated
|
||||
// If we are updating RO from the Admin Tools (from the V button) and we are updating more than on procedure set, then just append the "RO Update Complete" text
|
||||
// To the MessageList. Once completed will all procedure sets, Admin Tools will display one message box with all the results in it.
|
||||
if (MessageList == null)
|
||||
System.Windows.Forms.MessageBox.Show(fixedROs == 0 ? "No ROs Required Updating" : string.Format("{0} ROs Updated for {1}", fixedROs, dvi.MyFolder.Name), "RO Update Complete");
|
||||
FlexibleMessageBox.Show(fixedROs == 0 ? "No ROs Required Updating" : string.Format("{0} ROs Updated for {1}", fixedROs, dvi.MyFolder.Name), "RO Update Complete");
|
||||
else
|
||||
MessageList.AppendLine((fixedROs == 0 ? "No ROs Required Updating for " : string.Format("{0} ROs Updated for ", fixedROs)) + dvi.MyFolder.Name);
|
||||
|
||||
|
@ -10,6 +10,7 @@ using Volian.Base.Library;
|
||||
using Volian.Pipe.Library;
|
||||
using System.Xml;
|
||||
using System.Diagnostics;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -276,13 +277,13 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (cbGridAnnoType.SelectedIndex == -1)
|
||||
{
|
||||
MessageBox.Show("You Must Select an Annotation Type", "Annotation Type Not Selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("You Must Select an Annotation Type", "Annotation Type Not Selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
cbGridAnnoType.Focus();
|
||||
return;
|
||||
}
|
||||
if (rtxbComment.Text == string.Empty)
|
||||
{
|
||||
MessageBox.Show("You Must Enter Annotation Text", "Annotation Text Is Blank", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("You Must Enter Annotation Text", "Annotation Text Is Blank", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
rtxbComment.Focus();
|
||||
return;
|
||||
}
|
||||
|
@ -232,8 +232,8 @@ namespace Volian.Controls.Library
|
||||
foreach (InvalidTransition inv in invalidTrans)
|
||||
sb.AppendLine(string.Format("From {0} to {1}", inv.SrcStep, inv.TgtStep));
|
||||
// MessageBox.Show(sb.ToString());
|
||||
// B2013-185 use FlexibleMessageBox to display a long list with a scoll bar
|
||||
FlexibleMessageBox.Show(sb.ToString(), "Transitions Affected By Appicability Change");
|
||||
// B2013-185 use FlexibleMessageBox to display a long list with a scroll bar
|
||||
FlexibleMessageBox.Show(sb.ToString(), "Transitions Affected By Applicability Change");
|
||||
MyItemInfo = MyItemInfo;
|
||||
}
|
||||
//using (Content cnt = Content.Get(MyItemInfo.MyContent.ContentID))
|
||||
|
@ -6,6 +6,7 @@ using System.Data;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -127,7 +128,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (_CurItemInfo == null)
|
||||
{
|
||||
MessageBox.Show("Cannot set a bookmark on this item.");
|
||||
FlexibleMessageBox.Show("Cannot set a bookmark on this item.");
|
||||
return;
|
||||
}
|
||||
_MyBookMarks.Add(_CurItemInfo);
|
||||
|
@ -8,6 +8,7 @@ using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -197,10 +198,10 @@ namespace Volian.Controls.Library
|
||||
ContentAuditInfo cai = lbChanges.SelectedItem as ContentAuditInfo;
|
||||
if (cai != null)
|
||||
{
|
||||
// The following line was incorrectly showing a message stating that the item was deleted when it was noot.
|
||||
// The following line was incorrectly showing a message stating that the item was deleted when it was not.
|
||||
//if (cai.DeleteStatus > 0 || (cai.DeleteStatus == 0 && cai.ActionWhen.Year == DateTime.MinValue.Year))
|
||||
if (cai.DeleteStatus > 0)
|
||||
MessageBox.Show("This item has been deleted.", "Deleted Item", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("This item has been deleted.", "Deleted Item", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
else
|
||||
{
|
||||
try
|
||||
@ -210,7 +211,7 @@ namespace Volian.Controls.Library
|
||||
// If the selected item is deleted display a message rather than crashing
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("This item has been deleted.", "Deleted Item", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("This item has been deleted.", "Deleted Item", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -622,10 +623,10 @@ namespace Volian.Controls.Library
|
||||
// if original equation is restored, don't allow it because it is empty:
|
||||
if ((cai.Type > 20999 && cai.Type < 21010) && cai.ActionWhat.ToUpper() == "ORIGINAL")
|
||||
{
|
||||
MessageBox.Show(this, "Cannot restore original empty or new equation.", "Warning on restore", MessageBoxButtons.OK);
|
||||
FlexibleMessageBox.Show(this, "Cannot restore original empty or new equation.", "Warning on restore", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
if (MessageBox.Show(this, "Do you want to restore this content change?", "Confirm Content Change Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to restore this content change?", "Confirm Content Change Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
ROFstInfo myRoFst = null; // B2017-118 If No ROFST don't crash
|
||||
if (MyItemInfo.MyDocVersion.DocVersionAssociations != null)
|
||||
@ -656,7 +657,7 @@ namespace Volian.Controls.Library
|
||||
if (tn.Tag is ItemAuditInfo)
|
||||
{
|
||||
ItemAuditInfo iai = tn.Tag as ItemAuditInfo;
|
||||
if (MessageBox.Show(this, string.Format("Do you want to restore this {0}?",iai.ItemType), string.Format("Confirm {0} Restore",iai.ItemType), MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, string.Format("Do you want to restore this {0}?", iai.ItemType), string.Format("Confirm {0} Restore", iai.ItemType), MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
//Console.WriteLine("DisplayHistory.btnRestore_Click @ {0}", DateTime.Now);
|
||||
ItemInfo ii = null;
|
||||
@ -782,7 +783,7 @@ namespace Volian.Controls.Library
|
||||
if (tn.Tag is AnnotationAuditInfo)
|
||||
{
|
||||
AnnotationAuditInfo aai = tn.Tag as AnnotationAuditInfo;
|
||||
if (MessageBox.Show(this, "Do you want to restore this annotation?", "Confirm Annotation Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to restore this annotation?", "Confirm Annotation Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
AnnotationInfo ai = AnnotationInfo.RestoreAnnotation(aai);
|
||||
OnAnnotationRestored(ai, ai.MyItem);
|
||||
@ -795,7 +796,7 @@ namespace Volian.Controls.Library
|
||||
if (tn.Tag is GridAuditInfo)
|
||||
{
|
||||
GridAuditInfo gai = tn.Tag as GridAuditInfo;
|
||||
if (MessageBox.Show(this, "Do you want to restore this table?", "Confirm Table Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to restore this table?", "Confirm Table Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
ContentAuditInfo cai = ContentAuditInfo.Get(gai.ContentAuditID);
|
||||
ROFstInfo myRoFst = null; // B2017-118 If No ROFST don't crash
|
||||
@ -813,7 +814,7 @@ namespace Volian.Controls.Library
|
||||
if (tn.Tag is ImageAuditInfo)
|
||||
{
|
||||
ImageAuditInfo iai = tn.Tag as ImageAuditInfo;
|
||||
if (MessageBox.Show(this, "Do you want to restore this image?", "Confirm Image Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to restore this image?", "Confirm Image Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
ContentInfo ci = ContentInfo.RestoreImage(iai);
|
||||
RefreshRequired = true;
|
||||
|
@ -11,6 +11,7 @@ using XYPlots;
|
||||
using DevComponents.DotNetBar;
|
||||
using System.Text.RegularExpressions;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
//using VG;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
@ -599,7 +600,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (tbROValue.Text == null || tbROValue.Text == "")
|
||||
{
|
||||
MessageBox.Show("Must select an RO Value from the tree.");
|
||||
FlexibleMessageBox.Show("Must select an RO Value from the tree.");
|
||||
return;
|
||||
}
|
||||
Object obj = tvROFST.SelectedNode.Tag;
|
||||
@ -631,7 +632,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Error occurred finding RO. Contact Volian");
|
||||
FlexibleMessageBox.Show("Error occurred finding RO. Contact Volian");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -718,7 +719,7 @@ namespace Volian.Controls.Library
|
||||
break;
|
||||
}
|
||||
if (!goodToGo)
|
||||
MessageBox.Show(string.Format("{0} {1}", insrpl, errormsg), (replacingRO)?"Invalid RO Replacement":"Invalid RO Insert");
|
||||
FlexibleMessageBox.Show(string.Format("{0} {1}", insrpl, errormsg), (replacingRO) ? "Invalid RO Replacement" : "Invalid RO Insert");
|
||||
return goodToGo;
|
||||
}
|
||||
|
||||
@ -751,7 +752,7 @@ namespace Volian.Controls.Library
|
||||
pvROImg.ShowDialog();
|
||||
}
|
||||
else
|
||||
MessageBox.Show(string.Format("Cannot Find Image Data: {0}, {1}", MyROFST.ROFstID, fname));
|
||||
FlexibleMessageBox.Show(string.Format("Cannot Find Image Data: {0}, {1}", MyROFST.ROFstID, fname));
|
||||
}
|
||||
else if (selectedChld.type == 2) // table
|
||||
{
|
||||
@ -863,7 +864,7 @@ namespace Volian.Controls.Library
|
||||
if (!UserInfo.CanEditROs(MyUserInfo, Mydvi)) return; // do not allow writers and reviews to run the RO Editor
|
||||
if (VlnSettings.ReleaseMode.Equals("DEMO"))
|
||||
{
|
||||
MessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
FlexibleMessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
return;
|
||||
}
|
||||
//string roapp = Environment.GetEnvironmentVariable("roapp");
|
||||
@ -898,7 +899,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (VlnSettings.ReleaseMode.Equals("DEMO"))
|
||||
{
|
||||
MessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
FlexibleMessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
return;
|
||||
}
|
||||
//string roapp = Environment.GetEnvironmentVariable("roapp");
|
||||
@ -911,7 +912,7 @@ namespace Volian.Controls.Library
|
||||
string args = "\"" + _MyROFST.MyRODb.FolderPath + "\" " + roch.roid.ToLower();
|
||||
if (!Directory.Exists(_MyROFST.MyRODb.FolderPath))
|
||||
{
|
||||
MessageBox.Show(string.Format("RO Database directory does not exist: {0}", _MyROFST.MyRODb.FolderPath));
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", _MyROFST.MyRODb.FolderPath));
|
||||
return;
|
||||
}
|
||||
System.Diagnostics.Process.Start(roapp, args);
|
||||
@ -943,7 +944,7 @@ namespace Volian.Controls.Library
|
||||
string mytext = dti.MyDSOTabPanel.GetSelectedString();
|
||||
if (mytext == null || mytext == "")
|
||||
{
|
||||
MessageBox.Show(this, "Text must be selected in the document in order for an RO find to be performed.", "Select Text", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show(this, "Text must be selected in the document in order for an RO find to be performed.", "Select Text", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
@ -10,6 +10,7 @@ using DevComponents.DotNetBar;
|
||||
using DevComponents.AdvTree;
|
||||
using Volian.Base.Library;
|
||||
using System.Text.RegularExpressions;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -339,7 +340,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (lstCheckedDocVersions.Count > 0)
|
||||
{
|
||||
if (MessageBox.Show(this, "Do you want to expand to all relevant procedure sets for the selected format?", "Expand Procedure Sets", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to expand to all relevant procedure sets for the selected format?", "Expand Procedure Sets", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
lstCheckedDocVersions.Clear();
|
||||
foreach (DevComponents.AdvTree.Node n in dicSelectedFolderNodes.Keys)
|
||||
@ -1326,7 +1327,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (lstCheckedStepTypes.Count == 0)
|
||||
{
|
||||
MessageBox.Show("Please select one or more types then press the Search button", "No Types Selected");
|
||||
FlexibleMessageBox.Show("Please select one or more types then press the Search button", "No Types Selected");
|
||||
xpStepTypes.Expanded = true;
|
||||
advTreeStepTypes.Focus();
|
||||
xpStepTypes.TitleStyle.BackColor1.Color = Color.Crimson;
|
||||
@ -1431,7 +1432,7 @@ namespace Volian.Controls.Library
|
||||
DisplayResults();
|
||||
if (SearchResults != null && SearchResults.Count == 0)
|
||||
{
|
||||
MessageBox.Show("No Matches Found.", "Search");
|
||||
FlexibleMessageBox.Show("No Matches Found.", "Search");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1442,7 +1443,7 @@ namespace Volian.Controls.Library
|
||||
string tmpmsg = (cbxBooleanTxtSrch.Checked && ex.Message.Contains("Syntax error") && ex.Message.Contains("full-text search")) ?
|
||||
"Place \"\" around words that you are searching for, so that parser can better understand what you are trying to find" :
|
||||
ex.Message;
|
||||
MessageBox.Show(tmpmsg, "Search Error: " + ex.GetType().Name);
|
||||
FlexibleMessageBox.Show(tmpmsg, "Search Error: " + ex.GetType().Name);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@ -1872,7 +1873,7 @@ namespace Volian.Controls.Library
|
||||
SymbolList sl = fmtdata.SymbolList;
|
||||
if (sl == null || sl.Count <= 0)
|
||||
{
|
||||
MessageBox.Show("No symbols are available, check with administrator");
|
||||
FlexibleMessageBox.Show("No symbols are available, check with administrator");
|
||||
return;
|
||||
}
|
||||
foreach (Symbol sym in sl)
|
||||
@ -2277,7 +2278,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
Clipboard.Clear();
|
||||
Clipboard.SetText(sb.ToString());
|
||||
MessageBox.Show("Results Copied to Clipboard", "Copy Results", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show("Results Copied to Clipboard", "Copy Results", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
private string _ReportTitle;
|
||||
public string ReportTitle
|
||||
|
@ -8,6 +8,7 @@ using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Controls.Library;
|
||||
using DevComponents.DotNetBar;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -281,7 +282,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkActiveChanged(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkActiveChanged != null) LinkActiveChanged(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Active Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Active Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// This occurs when a Transition is inserted
|
||||
@ -295,7 +296,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkInsertTran(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkInsertTran != null) LinkInsertTran(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Insert Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Insert Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// This occurs when an RO is inserted
|
||||
@ -309,7 +310,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkInsertRO(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkInsertRO != null) LinkInsertRO(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Insert RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Insert RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// This occurs when a Transition is modified
|
||||
@ -323,7 +324,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkModifyTran(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkModifyTran != null) LinkModifyTran(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Modify Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Modify Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// This occurs when an RO is modified
|
||||
@ -337,7 +338,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkModifyRO(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkModifyRO != null) LinkModifyRO(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Modify RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Modify RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// Occurs when the user selects a different item or page
|
||||
@ -379,31 +380,31 @@ namespace Volian.Controls.Library
|
||||
internal void OnModeChange(object sender, StepRTBModeChangeEventArgs args)
|
||||
{
|
||||
if (ModeChange != null) ModeChange(sender, args);
|
||||
else MessageBox.Show("Cannot change mode");
|
||||
else FlexibleMessageBox.Show("Cannot change mode");
|
||||
}
|
||||
public event StepPanelTabDisplayEvent PanelTabDisplay;
|
||||
internal void OnPanelTabDisplay(object sender, StepPanelTabDisplayEventArgs args)
|
||||
{
|
||||
if (PanelTabDisplay != null) PanelTabDisplay(sender, args);
|
||||
else MessageBox.Show("Cannot display information");
|
||||
else FlexibleMessageBox.Show("Cannot display information");
|
||||
}
|
||||
public event StepPanelWordSectionCloseEvent WordSectionClose;
|
||||
internal void OnWordSectionClose(object sender, WordSectionEventArgs args)
|
||||
{
|
||||
if (WordSectionClose != null) WordSectionClose(sender, args);
|
||||
else MessageBox.Show("Cannot close associated Word section");
|
||||
else FlexibleMessageBox.Show("Cannot close associated Word section");
|
||||
}
|
||||
public event StepPanelWordSectionDeletedEvent WordSectionDeleted;
|
||||
internal void OnWordSectionDeleted(object sender, WordSectionEventArgs args)
|
||||
{
|
||||
if (WordSectionDeleted != null) WordSectionDeleted(sender, args);
|
||||
else MessageBox.Show("Cannot delete associated Word section");
|
||||
else FlexibleMessageBox.Show("Cannot delete associated Word section");
|
||||
}
|
||||
public event StepPanelItemPastedEvent ItemPaste;
|
||||
internal void OnItemPaste(object sender, vlnTreeItemInfoPasteEventArgs args)
|
||||
{
|
||||
if (ItemPaste != null) ItemPaste(sender, args);
|
||||
else MessageBox.Show("Cannot adjust panels for pasted item");
|
||||
else FlexibleMessageBox.Show("Cannot adjust panels for pasted item");
|
||||
}
|
||||
#endregion
|
||||
#region Contructor & Setup
|
||||
@ -542,7 +543,7 @@ namespace Volian.Controls.Library
|
||||
ItemInfo myItemInfo = myItemInfo2;
|
||||
if (myItemInfo.MyDocVersion == null) // bug fix: B2016-108 disconnected data will not have a MyDocVersion
|
||||
{
|
||||
MessageBox.Show(this, "Possible disconnected item", "Item Not Found");
|
||||
FlexibleMessageBox.Show(this, "Possible disconnected item", "Item Not Found");
|
||||
return null;
|
||||
}
|
||||
string message = string.Empty;
|
||||
@ -555,7 +556,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (!MySessionInfo.CanCheckOutItem(myItemInfo.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Procedure Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Procedure Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -563,7 +564,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (!MySessionInfo.CanCheckOutItem(myItemInfo.MyContent.MyEntry.DocID, CheckOutType.Document, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Document Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Document Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -574,7 +575,7 @@ namespace Volian.Controls.Library
|
||||
// if this is an auto table of contents section, don't edit it:
|
||||
if (myItemInfo.IsAutoTOCSection)
|
||||
{
|
||||
MessageBox.Show("This is an automatically generated 'Table of Contents' section. It is not editable. It is generated during Print.", "Item not Editable", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("This is an automatically generated 'Table of Contents' section. It is not editable. It is generated during Print.", "Item not Editable", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return SelectedDisplayTabItem;
|
||||
}
|
||||
bool libDocAlreadyOpen = false;
|
||||
@ -1066,7 +1067,7 @@ namespace Volian.Controls.Library
|
||||
ItemInfoList iil = pi.FindEnhancedProcedureTextDifferences();
|
||||
if (iil != null)
|
||||
{
|
||||
if (MessageBox.Show(this, "Text differences were found between this enhanced procedure and its source procedure. Do you want to refresh the text in this procedure?", "Confirm Text Refresh", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Text differences were found between this enhanced procedure and its source procedure. Do you want to refresh the text in this procedure?", "Confirm Text Refresh", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
|
||||
pi.EnhancedProcedureRefreshTextDifferences(iil);
|
||||
@ -1153,7 +1154,7 @@ namespace Volian.Controls.Library
|
||||
if (displayMsg)
|
||||
{
|
||||
string msg = string.Format("{0} is already open", myItemInfo.MyContent.MyEntry.MyDocument.LibTitle);
|
||||
MessageBox.Show(msg, "Library Document is Already Open", MessageBoxButtons.OK);
|
||||
FlexibleMessageBox.Show(msg, "Library Document is Already Open", MessageBoxButtons.OK);
|
||||
}
|
||||
libDocAlreadyOpen = true;
|
||||
break;
|
||||
@ -1178,7 +1179,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (DSOTabPanel.Count >= DSOTabPanel.MSWordLimit) // Limit the number of open document pages to 18
|
||||
{
|
||||
MessageBox.Show("Too many Word Documents Open. Please close one of the Documents before attempting to open another");
|
||||
FlexibleMessageBox.Show("Too many Word Documents Open. Please close one of the Documents before attempting to open another");
|
||||
return null;
|
||||
}
|
||||
//if ((myItemInfo.MyContent.MyEntry.MyDocument.LibTitle ?? "") != "")
|
||||
@ -1212,7 +1213,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (DSOTabPanel.Count > DSOTabPanel.MSWordLimit) //18) // Limit the number of open document pages to 18
|
||||
{
|
||||
MessageBox.Show("Too many Word Documents Open. Please close one of the Documents before attempting to open another");
|
||||
FlexibleMessageBox.Show("Too many Word Documents Open. Please close one of the Documents before attempting to open another");
|
||||
return null;
|
||||
}
|
||||
pg = new DisplayTabItem(this.components, this, myDocumentInfo, key); // Open a new document page
|
||||
|
@ -5,6 +5,7 @@ using System.Diagnostics;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -125,7 +126,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (!MesssageShown)
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("Security has not been defined for PROMS. All functionality has been defaulted to the lowest level for all users until security is defined.", "no security defined", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show("Security has not been defined for PROMS. All functionality has been defaulted to the lowest level for all users until security is defined.", "no security defined", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning);
|
||||
MesssageShown = true;
|
||||
}
|
||||
_MyStepTabPanel.MyStepTabRibbon.SetupReviewerMode();
|
||||
|
@ -6,6 +6,7 @@ using System.Data;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
@ -507,13 +508,12 @@ namespace Volian.Controls.Library
|
||||
_Initalizing = true;
|
||||
cbPlaceKeeper.Checked = false;
|
||||
}
|
||||
|
||||
}
|
||||
private void listBoxStepTypes_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (_Initalizing) return;
|
||||
// B2017-166 Verify before making step type change
|
||||
if (MessageBox.Show("Change Step Type?", "Verify Step Type Change", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
||||
if (FlexibleMessageBox.Show("Change Step Type?", "Verify Step Type Change", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
||||
{
|
||||
TagsFillIn();
|
||||
return;
|
||||
@ -575,7 +575,7 @@ namespace Volian.Controls.Library
|
||||
//topEditItem.MyStepPanel.Reset();
|
||||
|
||||
topEditItem.SetAllTabs();
|
||||
MessageBox.Show(msgBox);
|
||||
FlexibleMessageBox.Show(msgBox);
|
||||
|
||||
}
|
||||
|
||||
@ -702,7 +702,7 @@ namespace Volian.Controls.Library
|
||||
bool bothEmpty = (sc.Step_Responsibility == null || sc.Step_Responsibility == "") && (tbRespons.Text == null || tbRespons.Text == "");
|
||||
if (!bothEmpty && sc.Step_Responsibility != tbRespons.Text)
|
||||
{
|
||||
if (MessageBox.Show(this, "Do you want to save the Responsibility Text?", "Confirm Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to save the Responsibility Text?", "Confirm Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
MyEditItem.SaveContents();
|
||||
sc.Step_Responsibility = tbRespons.Text; // this actually saves the config
|
||||
@ -775,7 +775,7 @@ namespace Volian.Controls.Library
|
||||
if (invaliddata || newHt < trBarFS.Minimum || newHt > trBarFS.Maximum)
|
||||
{
|
||||
string errormsg = string.Format("Invalid width, must be integer and greater than 72 (inch) and less than {0}", trBarFS.Maximum);
|
||||
MessageBox.Show(errormsg, "Invalid Width data");
|
||||
FlexibleMessageBox.Show(errormsg, "Invalid Width data");
|
||||
return;
|
||||
}
|
||||
tbFSHt.Text = ((int)(int.Parse(tbFSWd.Text) * _origFigureSizeRatio)).ToString();
|
||||
|
@ -10,6 +10,7 @@ using System.Text.RegularExpressions;
|
||||
using AT.STO.UI.Win;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -761,7 +762,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Based on your selection, cannot get list of procedures, Select another folder.");
|
||||
FlexibleMessageBox.Show("Based on your selection, cannot get list of procedures, Select another folder.");
|
||||
// disable ALL other controls
|
||||
cbTranProcs.Enabled = false;
|
||||
cbTranSects.Enabled = false;
|
||||
@ -777,7 +778,7 @@ namespace Volian.Controls.Library
|
||||
defines_set = true;
|
||||
if (!defines_set)
|
||||
{
|
||||
MessageBox.Show("Based on your selection, cannot get list of procedures, narrow the procedure set selection.");
|
||||
FlexibleMessageBox.Show("Based on your selection, cannot get list of procedures, narrow the procedure set selection.");
|
||||
// disable ALL other controls
|
||||
cbTranProcs.Enabled = false;
|
||||
cbTranSects.Enabled = false;
|
||||
@ -806,7 +807,7 @@ namespace Volian.Controls.Library
|
||||
dv = (DocVersionInfo)obj;
|
||||
if (dv.Procedures.Count < 1)
|
||||
{
|
||||
MessageBox.Show("There are no procedures in this set. Cannot insert a transition within it.");
|
||||
FlexibleMessageBox.Show("There are no procedures in this set. Cannot insert a transition within it.");
|
||||
cbTranProcs.Enabled = false;
|
||||
cbTranSects.Enabled = false;
|
||||
tvTran.Enabled = false;
|
||||
@ -1049,7 +1050,7 @@ namespace Volian.Controls.Library
|
||||
ItemInfo selii = vt.VEObject as ItemInfo;
|
||||
if (selii == null)
|
||||
{
|
||||
MessageBox.Show("Must select a valid step, not a grouping part such as 'RNO', 'Steps', etc");
|
||||
FlexibleMessageBox.Show("Must select a valid step, not a grouping part such as 'RNO', 'Steps', etc");
|
||||
return;
|
||||
}
|
||||
SaveCancelEnabling();
|
||||
@ -1141,7 +1142,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (tvTran.SelectedNode==null)
|
||||
{
|
||||
MessageBox.Show("Must 'Select Step' for transition 'to'");
|
||||
FlexibleMessageBox.Show("Must 'Select Step' for transition 'to'");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -1151,13 +1152,13 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (_RangeNode1==null)
|
||||
{
|
||||
MessageBox.Show("Must 'Select Step' for transition 'to'");
|
||||
FlexibleMessageBox.Show("Must 'Select Step' for transition 'to'");
|
||||
return;
|
||||
}
|
||||
toItem = (ItemInfo)_RangeNode1.VEObject;
|
||||
if (_RangeNode2 == null && tvTran.SelectedNode == null)
|
||||
{
|
||||
MessageBox.Show("Must 'Select Step' for range transition 'to'");
|
||||
FlexibleMessageBox.Show("Must 'Select Step' for range transition 'to'");
|
||||
return;
|
||||
}
|
||||
if (_RangeNode2 == null) _RangeNode2 = (VETreeNode)tvTran.SelectedNode;
|
||||
@ -1183,7 +1184,7 @@ namespace Volian.Controls.Library
|
||||
// Check that the two items are of the below the section type.
|
||||
if (toItem.MyContent.Type < 20000 || rangeItem.MyContent.Type < 20000)
|
||||
{
|
||||
MessageBox.Show("Must select two items at the step level or below, i.e. no sections, procedures, etc.");
|
||||
FlexibleMessageBox.Show("Must select two items at the step level or below, i.e. no sections, procedures, etc.");
|
||||
return;
|
||||
}
|
||||
// be sure that the order is right, i.e. to is before range in list.
|
||||
@ -1231,7 +1232,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (toItem==null)
|
||||
{
|
||||
MessageBox.Show("Must 'Select Section' or 'Select Step' for transition 'to'");
|
||||
FlexibleMessageBox.Show("Must 'Select Section' or 'Select Step' for transition 'to'");
|
||||
return;
|
||||
}
|
||||
linktxt = string.Format("#Link:Transition:{0} <NewID> {1}", listBoxTranFmt.SelectedIndex, toItem.ItemID);
|
||||
@ -1241,7 +1242,7 @@ namespace Volian.Controls.Library
|
||||
toItem = (ItemInfo)cbTranProcs.SelectedItem;
|
||||
if (toItem == null)
|
||||
{
|
||||
MessageBox.Show("Must select an item for transition 'to'");
|
||||
FlexibleMessageBox.Show("Must select an item for transition 'to'");
|
||||
return;
|
||||
}
|
||||
linktxt = string.Format("#Link:Transition:{0} <NewID> {1}", listBoxTranFmt.SelectedIndex, toItem.ItemID);
|
||||
@ -1255,19 +1256,19 @@ namespace Volian.Controls.Library
|
||||
sb.AppendLine();
|
||||
sb.AppendLine(string.Format("Source step {0} has applicability of {1}", pt.FromStep, pt.FromAppl));
|
||||
sb.AppendLine(string.Format("Destination step {0} has applicability of {1}", pt.ToStep, pt.ToAppl));
|
||||
MessageBox.Show(sb.ToString());
|
||||
FlexibleMessageBox.Show(sb.ToString());
|
||||
return;
|
||||
}
|
||||
if(listBoxTranFmt.Text.Contains("{Step Text}") && toItem.ItemID == MyRTB.MyItemInfo.ItemID)
|
||||
{
|
||||
MessageBox.Show("You cannot add a transition to itself for a transition that includes Step Text",
|
||||
FlexibleMessageBox.Show("You cannot add a transition to itself for a transition that includes Step Text",
|
||||
"Cannot add recusive transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
// B2015-170 - don't allow a transition to step that is not sequental
|
||||
if ((toItem != null &&!toItem.IsNumbered) || (rangeItem != null && !rangeItem.IsNumbered))
|
||||
{
|
||||
MessageBox.Show("For transitions containing step references, the transition must be to a numbered or lettered step.",
|
||||
FlexibleMessageBox.Show("For transitions containing step references, the transition must be to a numbered or lettered step.",
|
||||
"Cannot add transition to a non-seqential step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
@ -1103,7 +1103,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
else
|
||||
MessageBox.Show(ex.Message, "SQL Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show(ex.Message, "SQL Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
private void RemoveFromParentsChildList()
|
||||
{
|
||||
@ -1726,7 +1726,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (!canMakeMissingStep)
|
||||
{
|
||||
MessageBox.Show("Cannot create the missing enhanced step, the Enhanced Step for the High Level step must be created first.");
|
||||
FlexibleMessageBox.Show("Cannot create the missing enhanced step, the Enhanced Step for the High Level step must be created first.");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -1930,12 +1930,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (ex.Message.Contains("This step has been deleted"))
|
||||
{
|
||||
MessageBox.Show("The step being pasted has been deleted", "Cannot Paste Step", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
FlexibleMessageBox.Show("The step being pasted has been deleted", "Cannot Paste Step", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
return true;
|
||||
}
|
||||
if (ex.Message.Contains("This current step has been deleted in another session"))
|
||||
{
|
||||
MessageBox.Show("The highlighted step has been deleted by another user.", "Cannot Paste Step", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
FlexibleMessageBox.Show("The highlighted step has been deleted by another user.", "Cannot Paste Step", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -7,6 +7,7 @@ using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -251,9 +252,9 @@ namespace Volian.Controls.Library
|
||||
if (!findingbookmarks)
|
||||
{
|
||||
if (cbxReverse.Checked)
|
||||
MessageBox.Show(this, "Not Found - From Here to Beginning of Section", "Find/Replace");
|
||||
FlexibleMessageBox.Show(this, "Not Found - From Here to Beginning of Section", "Find/Replace");
|
||||
else
|
||||
MessageBox.Show(this, "Not Found - From Here to End of Section", "Find/Replace");
|
||||
FlexibleMessageBox.Show(this, "Not Found - From Here to End of Section", "Find/Replace");
|
||||
}
|
||||
FoundIt = false;
|
||||
return;
|
||||
@ -413,7 +414,7 @@ namespace Volian.Controls.Library
|
||||
SymbolList sl = fmtdata.SymbolList;
|
||||
if (sl == null || sl.Count <= 0)
|
||||
{
|
||||
MessageBox.Show(this, "No symbols are available, check with administrator");
|
||||
FlexibleMessageBox.Show(this, "No symbols are available, check with administrator");
|
||||
return;
|
||||
}
|
||||
foreach (Symbol sym in sl)
|
||||
|
@ -11,6 +11,7 @@ using System.Xml;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Base.Library;
|
||||
using C1.Win.C1FlexGrid;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -814,7 +815,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("The content of this table is corrupted. You will either need to restore a previous version or delete it.", "Table Corrupted", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show("The content of this table is corrupted. You will either need to restore a previous version or delete it.", "Table Corrupted", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -857,7 +858,7 @@ namespace Volian.Controls.Library
|
||||
MyStepRTB.Select(ss, sl); // need to reset selection because startediting positions to end.
|
||||
if (MyStepRTB.ReadOnly)
|
||||
{
|
||||
MessageBox.Show("Cannot replace linked text!", "Find/Replace", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
|
||||
FlexibleMessageBox.Show("Cannot replace linked text!", "Find/Replace", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
|
||||
return DialogResult.Yes;
|
||||
}
|
||||
string oldRtf = MyStepRTB.Rtf;
|
||||
@ -891,7 +892,7 @@ namespace Volian.Controls.Library
|
||||
MyStepRTB.Select(ss, sl);
|
||||
if (MyStepRTB.ReadOnly)
|
||||
{
|
||||
MessageBox.Show("Cannot replace linked text!", "Find/Replace", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
|
||||
FlexibleMessageBox.Show("Cannot replace linked text!", "Find/Replace", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
|
||||
return DialogResult.Yes;
|
||||
}
|
||||
string oldRtf = MyStepRTB.Rtf;
|
||||
|
@ -8,6 +8,7 @@ using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -415,16 +416,16 @@ namespace Volian.Controls.Library
|
||||
// check that it is an image
|
||||
System.Drawing.Image img = System.Drawing.Image.FromFile(openFileDialog1.FileName);
|
||||
if (img != null)
|
||||
{
|
||||
FileName = openFileDialog1.FileName;
|
||||
MyPictureBox.Image = img;
|
||||
SetWidthsAndHeights(img);
|
||||
_IsDirty = true;
|
||||
}
|
||||
{
|
||||
FileName = openFileDialog1.FileName;
|
||||
MyPictureBox.Image = img;
|
||||
SetWidthsAndHeights(img);
|
||||
_IsDirty = true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Could not create image, check file type.", "Error on Image File Selection");
|
||||
FlexibleMessageBox.Show("Could not create image, check file type.", "Error on Image File Selection");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -547,7 +548,7 @@ namespace Volian.Controls.Library
|
||||
catch (Exception ex)
|
||||
{
|
||||
string msg = string.Format("Could not display image {0}.", imgname);
|
||||
MessageBox.Show(msg);
|
||||
FlexibleMessageBox.Show(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -682,7 +683,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (InsType == E_ImageSource.RoFigure && MyItemInfo.MyContent.MyImage == null) // on an RO image
|
||||
{
|
||||
MessageBox.Show("Cannot replace an existing RO figure/image. Use the Step Properties panel/RO tab.", "Warning, no paste/replace for RO images.");
|
||||
FlexibleMessageBox.Show("Cannot replace an existing RO figure/image. Use the Step Properties panel/RO tab.", "Warning, no paste/replace for RO images.");
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
@ -698,19 +699,19 @@ namespace Volian.Controls.Library
|
||||
System.Drawing.Image img = Clipboard.GetImage();
|
||||
if (img == null) // let user know there is no valid data in clipboard:
|
||||
{
|
||||
MessageBox.Show(this, "The clipboard does not contain image data.", "Cannot paste.", MessageBoxButtons.OK);
|
||||
FlexibleMessageBox.Show(this, "The clipboard does not contain image data.", "Cannot paste.", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
if (MyItemInfo.MyContent.MyImage != null && img != null) // see if there already is an image and if so - ask if user wants to replace.
|
||||
{
|
||||
if (MessageBox.Show(this, "Do you want to replace the existing image?", "Confirm Image Replace", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to replace the existing image?", "Confirm Image Replace", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
setdata = true;
|
||||
setdata = true;
|
||||
}
|
||||
}
|
||||
else if (MyItemInfo.MyContent.ContentRoUsageCount > 0 && img != null)
|
||||
{
|
||||
MessageBox.Show("Cannot replace an existing RO figure/image. Use the Step Properties panel/RO tab.", "Warning, no paste/replace for RO images.");
|
||||
FlexibleMessageBox.Show("Cannot replace an existing RO figure/image. Use the Step Properties panel/RO tab.", "Warning, no paste/replace for RO images.");
|
||||
return;
|
||||
}
|
||||
else if (img != null) // no existing image, be sure there is valid data in clipboard
|
||||
@ -806,7 +807,7 @@ namespace Volian.Controls.Library
|
||||
byte[] cmp = ROImageInfo.Compress(imgToByte);
|
||||
if (origLen > cmp.Length)
|
||||
{
|
||||
imgToByte = cmp;
|
||||
imgToByte = cmp;
|
||||
compressed = true;
|
||||
}
|
||||
}
|
||||
@ -835,8 +836,8 @@ namespace Volian.Controls.Library
|
||||
imgCfg = new ImageConfig();
|
||||
else if (imgCfg == null)
|
||||
imgCfg = new ImageConfig(MyItemInfo.MyContent.MyImage);
|
||||
imgCfg.Image_DataSize = origLen;
|
||||
_MyItem.MyContent.MyImage.Config = imgCfg.ToString();
|
||||
imgCfg.Image_DataSize = origLen;
|
||||
_MyItem.MyContent.MyImage.Config = imgCfg.ToString();
|
||||
}
|
||||
_MyItem.MyContent.MyImage.Data = imgToByte;
|
||||
_MyItem.MyContent.MyImage.FileName = FileName;
|
||||
@ -846,28 +847,28 @@ namespace Volian.Controls.Library
|
||||
_MyItem.MyContent.DTS = DateTime.Now;
|
||||
_MyItem.MyContent.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
_MyItem.Save();
|
||||
}
|
||||
StepConfig sc = MyItemInfo.MyConfig as StepConfig;
|
||||
// if the plant has the change id option, the change id was entered when the program started.
|
||||
// this should be saved for every piece of edited data. Note that the set of config
|
||||
// item Step_MultipleChangeID has the save built in to it.
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds
|
||||
&& !this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.EditorialChange)
|
||||
{
|
||||
if (sc == null) sc = new StepConfig();
|
||||
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
||||
}
|
||||
// We saved changes. Reset the change bar override.
|
||||
// IF there is a step config remove the change bar override by setting the CBOverride value to null
|
||||
// This fixes a problem reported by Farly where if the change bar or overridden to be off, the next
|
||||
// time a change was made, the change bar remained turned off.
|
||||
if (sc != null)
|
||||
sc.Step_CBOverride = null; // clear the change bar override
|
||||
MyStepRTB.ClearUndo();
|
||||
}
|
||||
StepConfig sc = MyItemInfo.MyConfig as StepConfig;
|
||||
// if the plant has the change id option, the change id was entered when the program started.
|
||||
// this should be saved for every piece of edited data. Note that the set of config
|
||||
// item Step_MultipleChangeID has the save built in to it.
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChangeIds
|
||||
&& !this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.EditorialChange)
|
||||
{
|
||||
if (sc == null) sc = new StepConfig();
|
||||
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
|
||||
}
|
||||
// We saved changes. Reset the change bar override.
|
||||
// IF there is a step config remove the change bar override by setting the CBOverride value to null
|
||||
// This fixes a problem reported by Farly where if the change bar or overridden to be off, the next
|
||||
// time a change was made, the change bar remained turned off.
|
||||
if (sc != null)
|
||||
sc.Step_CBOverride = null; // clear the change bar override
|
||||
MyStepRTB.ClearUndo();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("The image could not be saved.", "Image Save", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show("The image could not be saved.", "Image Save", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
_newSizeHt = 0;
|
||||
@ -906,7 +907,7 @@ namespace Volian.Controls.Library
|
||||
ifmt = System.Drawing.Imaging.ImageFormat.Png;
|
||||
break;
|
||||
default:
|
||||
MessageBox.Show("Invalid File Type");
|
||||
FlexibleMessageBox.Show("Invalid File Type");
|
||||
return null;
|
||||
}
|
||||
MemoryStream ms = new MemoryStream();
|
||||
@ -931,7 +932,7 @@ namespace Volian.Controls.Library
|
||||
if (img != null)
|
||||
{
|
||||
// Ask user if they want to use the clipboard image.
|
||||
DialogResult dr = MessageBox.Show("Clipboard has an image, use this (select Yes) or select a file (select No)?", "Insert Image Before/After", MessageBoxButtons.YesNo);
|
||||
DialogResult dr = FlexibleMessageBox.Show("Clipboard has an image, use this (select Yes) or select a file (select No)?", "Insert Image Before/After", MessageBoxButtons.YesNo);
|
||||
if (dr == DialogResult.Yes)
|
||||
{
|
||||
|
||||
@ -967,7 +968,7 @@ namespace Volian.Controls.Library
|
||||
if (dr != DialogResult.Cancel)
|
||||
{
|
||||
string msg = string.Format("Could not display image {0}.", openFileDialog1.FileName);
|
||||
MessageBox.Show(msg);
|
||||
FlexibleMessageBox.Show(msg);
|
||||
}
|
||||
return; // user must have exited out or entered a bad filename.
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ using VEPROMS.CSLA.Library;
|
||||
using System.Drawing;
|
||||
using System.Text.RegularExpressions;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -139,7 +140,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnAttachmentClicked(object sender, StepPanelAttachmentEventArgs args)
|
||||
{
|
||||
if (AttachmentClicked != null) AttachmentClicked(sender, args);
|
||||
else MessageBox.Show(args.MyEditItem.MyItemInfo.MyContent.MyEntry.MyDocument.DocumentTitle, "Unhandled Attachment Click", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.MyEditItem.MyItemInfo.MyContent.MyEntry.MyDocument.DocumentTitle, "Unhandled Attachment Click", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
|
||||
// Edit/View mode change
|
||||
@ -188,7 +189,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkActiveChanged(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkActiveChanged != null) LinkActiveChanged(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Active Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Active Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// Occurs when the user chooses to Insert a Transition
|
||||
@ -202,7 +203,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkInsertTran(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkInsertTran != null) LinkInsertTran(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Insert Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Insert Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// Occurs when the user chooses to Insert an RO
|
||||
@ -216,7 +217,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkInsertRO(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkInsertRO != null) LinkInsertRO(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Insert RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Insert RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// Occurs when the user clicks a Link
|
||||
@ -230,7 +231,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkClicked(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkClicked != null) LinkClicked(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Click", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Click", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// Occurs when the user chooses to modify a Transition
|
||||
@ -244,7 +245,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkModifyTran(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkModifyTran != null) LinkModifyTran(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Modify Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Modify Tran", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
/// <summary>
|
||||
/// Occurs when the user chooses to modify an RO
|
||||
@ -258,7 +259,7 @@ namespace Volian.Controls.Library
|
||||
internal void OnLinkModifyRO(object sender, StepPanelLinkEventArgs args)
|
||||
{
|
||||
if (LinkModifyRO != null) LinkModifyRO(sender, args);
|
||||
else MessageBox.Show(args.LinkInfoText, "Unhandled Link Modify RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
else FlexibleMessageBox.Show(args.LinkInfoText, "Unhandled Link Modify RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
#endregion
|
||||
#region Constructors
|
||||
@ -460,7 +461,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
else
|
||||
{
|
||||
DialogResult result = MessageBox.Show("This step does not have text but has substeps. Do you want to delete it and its substeps?", "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
DialogResult result = FlexibleMessageBox.Show("This step does not have text but has substeps. Do you want to delete it and its substeps?", "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (result == DialogResult.No) shouldDelete = false;
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ using System.Runtime.InteropServices;
|
||||
using System.Text.RegularExpressions;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Base.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -2196,16 +2197,16 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (MyItemInfo != null && MyItemInfo.IsRtfRaw && MyItemInfo.FormatStepData.Type.ToUpper().Contains("EQUATION") && !hasEquation)
|
||||
{
|
||||
MessageBox.Show("Cannot paste non-equation data into an equation step type.", "Invalid data", MessageBoxButtons.OK);
|
||||
FlexibleMessageBox.Show("Cannot paste non-equation data into an equation step type.", "Invalid data", MessageBoxButtons.OK);
|
||||
//richTextBox1.Dispose();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
// if inserting anything other than equation, be sure that an equation is not in the buffer:
|
||||
else if (hasEquation && (MyItemInfo==null || (MyItemInfo != null && !MyItemInfo.IsRtfRaw && !MyItemInfo.FormatStepData.Type.ToUpper().Contains("EQUATION"))))
|
||||
else if (hasEquation && (MyItemInfo == null || (MyItemInfo != null && !MyItemInfo.IsRtfRaw && !MyItemInfo.FormatStepData.Type.ToUpper().Contains("EQUATION"))))
|
||||
{
|
||||
MessageBox.Show("Cannot paste equation data into an non-equation step type.", "Invalid data", MessageBoxButtons.OK);
|
||||
//richTextBox1.Dispose();
|
||||
FlexibleMessageBox.Show("Cannot paste equation data into an non-equation step type.", "Invalid data", MessageBoxButtons.OK);
|
||||
//richTextBox1.Dispose();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
@ -2242,7 +2243,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (!iData.GetDataPresent(DataFormats.Text) && !iData.GetDataPresent(DataFormats.Rtf))
|
||||
{
|
||||
MessageBox.Show("Cannot paste, text has special characters or symbols that will not paste correctly.");
|
||||
FlexibleMessageBox.Show("Cannot paste, text has special characters or symbols that will not paste correctly.");
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2631,7 +2632,7 @@ namespace Volian.Controls.Library
|
||||
if (!IsControlChar && MyItemInfo != null && MyItemInfo.IsRtfRaw)
|
||||
{
|
||||
string err = string.Format("Cannot enter text into an equation or incorrect keystroke entered for equation");
|
||||
MessageBox.Show(err, "Invalid text.", MessageBoxButtons.OK);
|
||||
FlexibleMessageBox.Show(err, "Invalid text.", MessageBoxButtons.OK);
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
@ -2746,7 +2747,7 @@ namespace Volian.Controls.Library
|
||||
ptext = ptext.Replace("\u2011", "-"); // Replace non-breaking hyphen with hyphen
|
||||
ptext = ptext.Replace("\u2572", "\\"); // Replace backslash symbol with backslash character
|
||||
if (didCharReplace)
|
||||
MessageBox.Show("Replacing pasted characters that are not supported by Proms with a '?'.");
|
||||
FlexibleMessageBox.Show("Replacing pasted characters that are not supported by Proms with a '?'.");
|
||||
return ptext;
|
||||
}
|
||||
private void DoDeleteEndBetweenLinks()
|
||||
@ -2947,13 +2948,13 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (IsSelectionLinked(SelectionStart, SelectionLength))
|
||||
{
|
||||
MessageBox.Show(fndrpldlg,"Cannot replace linked text!", "Find/Replace");
|
||||
FlexibleMessageBox.Show(fndrpldlg, "Cannot replace linked text!", "Find/Replace");
|
||||
dlgrslt = DialogResult.No;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (prompt)
|
||||
dlgrslt = MessageBox.Show(fndrpldlg,"Replace This Occurence?", "Replace Text", MessageBoxButtons.YesNoCancel);
|
||||
dlgrslt = FlexibleMessageBox.Show(fndrpldlg, "Replace This Occurrence?", "Replace Text", MessageBoxButtons.YesNoCancel);
|
||||
if (dlgrslt == DialogResult.Yes)
|
||||
SelectedText = rpltxt;
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ using System.Drawing;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Controls.Library;
|
||||
using System.Windows.Forms;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -59,7 +60,7 @@ namespace Volian.Controls.Library
|
||||
_MyStepPanel.SelectedEditItem = _MyStepPanel.GetEditItem(value);
|
||||
if (_MyStepPanel.SelectedEditItem == null)
|
||||
{
|
||||
MessageBox.Show("The selected item is not available in the editor. One possible cause is that the data is 'not editable', check the section properties 'Editable Data' checkbox.", "Inaccessible Data", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("The selected item is not available in the editor. One possible cause is that the data is 'not editable', check the section properties 'Editable Data' checkbox.", "Inaccessible Data", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
if (_MyStepPanel.SelectedEditItem != null)
|
||||
@ -283,15 +284,15 @@ namespace Volian.Controls.Library
|
||||
if (args.MyLinkText.LinkInfoText.IndexOf("Transition") > -1)
|
||||
{
|
||||
// B2018-002 - Invalid Transitions - Don't fail on invalid transition
|
||||
if(args.MyLinkText.MyTransitionInfo == null)
|
||||
{
|
||||
MessageBox.Show("This transition is invalid\r\n\r\nDelete it and replace it with \r\na valid transition", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return; // Not a valid transition
|
||||
}
|
||||
if (args.MyLinkText.MyTransitionInfo == null)
|
||||
{
|
||||
FlexibleMessageBox.Show("This transition is invalid\r\n\r\nDelete it and replace it with \r\na valid transition", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return; // Not a valid transition
|
||||
}
|
||||
ItemInfo item = args.MyLinkText.MyTranToItemInfo;
|
||||
if (item == null || item.MyDocVersion == null || (item.PreviousID == null && item.ItemPartCount == 0 && item.ItemDocVersionCount == 0))
|
||||
{
|
||||
MessageBox.Show("This transition is invalid", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show("This transition is invalid", "Invalid Transition", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return; // Not a valid transition
|
||||
}
|
||||
_MyDisplayTabControl.OpenItem(item);
|
||||
|
@ -15,6 +15,7 @@ using Volian.Base.Library;
|
||||
using DevComponents.DotNetBar;
|
||||
using Microsoft.Win32;
|
||||
using System.Diagnostics;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -326,7 +327,7 @@ namespace Volian.Controls.Library
|
||||
else if (btn.Name.Contains("Unlink"))
|
||||
{
|
||||
// C2019=003: add a confirmation dialog before unlinking a step:
|
||||
if (MessageBox.Show(this, "Do you want to unlink this step?", "Confirm Enhanced Step Unlink", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
if (FlexibleMessageBox.Show(this, "Do you want to unlink this step?", "Confirm Enhanced Step Unlink", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
MyEditItem.UnlinkEnhanced(MyEditItem.MyItemInfo);
|
||||
}
|
||||
}
|
||||
@ -662,7 +663,7 @@ namespace Volian.Controls.Library
|
||||
SymbolList sl = fmt.PlantFormat.FormatData.SymbolList;
|
||||
if (sl == null || sl.Count <= 0)
|
||||
{
|
||||
MessageBox.Show("No symbols are available, check with administrator");
|
||||
FlexibleMessageBox.Show("No symbols are available, check with administrator");
|
||||
return;
|
||||
}
|
||||
BuildSymbolGallery(sl, galleryContainerSymbolsCM, galleryContainerSymbolsCM3, galleryContainerSymbolsGrid, galleryContainerSymbolsCM4);
|
||||
@ -1039,9 +1040,9 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
// Fix B2016-238 Fix B2017-139 account for image sub-steps
|
||||
// C2017-028 don't display message if on a table (allow sup info off of a table)
|
||||
if (_MyEditItem.MyStepRTB.Text == "" && !(_MyEditItem is ImageItem) && !(_MyEditItem is GridItem))
|
||||
if (_MyEditItem.MyStepRTB.Text == "" && !(_MyEditItem is ImageItem) && !(_MyEditItem is GridItem))
|
||||
{
|
||||
MessageBox.Show(this, "Cannot insert step from empty step.", "Insert step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
FlexibleMessageBox.Show(this, "Cannot insert step from empty step.", "Insert step", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
string cautNoteOrder = _MyEditItem.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.CautionNoteOrder;
|
||||
@ -1114,7 +1115,7 @@ namespace Volian.Controls.Library
|
||||
System.Drawing.Image img = Clipboard.GetImage();
|
||||
if (img == null && tabOrFigType.Contains("CL"))
|
||||
{
|
||||
MessageBox.Show("Clipboard does not contain image data. Cannot create figure.", "Clipboard Error");
|
||||
FlexibleMessageBox.Show("Clipboard does not contain image data. Cannot create figure.", "Clipboard Error");
|
||||
return;
|
||||
}
|
||||
_MyEditItem.AddChild((E_FromType)fromtype, contenttype, tabOrFigType.Contains("CL") ? ImageItem.E_ImageSource.Clipboard : ImageItem.E_ImageSource.File);
|
||||
@ -1128,7 +1129,7 @@ namespace Volian.Controls.Library
|
||||
switch (OleObjectEditors)
|
||||
{
|
||||
case 0: // None
|
||||
MessageBox.Show("The Equation Editor needs to be started.", "Reminder", MessageBoxButtons.OK);
|
||||
FlexibleMessageBox.Show("The Equation Editor needs to be started.", "Reminder", MessageBoxButtons.OK);
|
||||
break;
|
||||
case 1: // Equation Editor
|
||||
Process.Start(EqnEdtPath);
|
||||
@ -2804,7 +2805,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (VlnSettings.ReleaseMode.Equals("DEMO"))
|
||||
{
|
||||
MessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
FlexibleMessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
return;
|
||||
}
|
||||
string myROID;
|
||||
@ -2828,7 +2829,7 @@ namespace Volian.Controls.Library
|
||||
if (myROID == null) return;
|
||||
if (myROID.StartsWith("ffff"))
|
||||
{
|
||||
MessageBox.Show("Unit Information RO's cannot be edited", "Unit Information RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show("Unit Information RO's cannot be edited", "Unit Information RO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
//string roapp = Environment.GetEnvironmentVariable("roapp");
|
||||
@ -2836,7 +2837,7 @@ namespace Volian.Controls.Library
|
||||
string args = "\"" + myRODB.FolderPath + "\" " + myROID;
|
||||
if (!Directory.Exists(myRODB.FolderPath))
|
||||
{
|
||||
MessageBox.Show(string.Format("RO Database directory does not exist: {0}", myRODB.FolderPath));
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", myRODB.FolderPath));
|
||||
return;
|
||||
}
|
||||
System.Diagnostics.Process.Start(roapp, args);
|
||||
@ -2951,20 +2952,20 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (VlnSettings.ReleaseMode.Equals("DEMO"))
|
||||
{
|
||||
MessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
FlexibleMessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
return;
|
||||
}
|
||||
//string roapp = Environment.GetEnvironmentVariable("roapp");
|
||||
string roapp = Volian.Base.Library.ExeInfo.GetROEditorPath(); // get the path to the RO Editor Executable
|
||||
if (roapp == null || roapp == string.Empty)
|
||||
{
|
||||
MessageBox.Show("The 'roapp' environment variable needs to be set to the path of the RO Editor\n\n Ex: C:\\VE-PROMS.NET\\Bin\\roeditor.exe", "Environment Variable Error");
|
||||
FlexibleMessageBox.Show("The 'roapp' environment variable needs to be set to the path of the RO Editor\n\n Ex: C:\\VE-PROMS.NET\\Bin\\roeditor.exe", "Environment Variable Error");
|
||||
return;
|
||||
}
|
||||
if (!File.Exists(roapp))
|
||||
{
|
||||
string errtxt = string.Format("Could not find path to Referenced Objects Editor:\n\n roapp = {0}\n\n Verify the path assigned to the 'roapp' environment variable", roapp);
|
||||
MessageBox.Show(errtxt, "Environment Variable Error");
|
||||
FlexibleMessageBox.Show(errtxt, "Environment Variable Error");
|
||||
//MessageBox.Show("Could not find path to Ro Editor, check 'roapp' environment variable","Environment Variable Error");
|
||||
return;
|
||||
}
|
||||
@ -2975,13 +2976,13 @@ namespace Volian.Controls.Library
|
||||
//}
|
||||
if (Mydvi == null || Mydvi.DocVersionAssociationCount < 1)
|
||||
{
|
||||
MessageBox.Show("Could not find associated path for ro data.", "No RO Data", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
FlexibleMessageBox.Show("Could not find associated path for ro data.", "No RO Data", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
string roloc = "\"" + Mydvi.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath + "\"";
|
||||
if (!Directory.Exists(Mydvi.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath))
|
||||
{
|
||||
MessageBox.Show(string.Format("RO Database directory does not exist: {0}", Mydvi.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", Mydvi.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||
return;
|
||||
}
|
||||
System.Diagnostics.Process.Start(roapp, roloc);
|
||||
@ -2995,7 +2996,7 @@ namespace Volian.Controls.Library
|
||||
if (Mydvi.DocVersionAssociations.Count < 1)
|
||||
{
|
||||
FinalProgressBarMessage = "No ROs associated";
|
||||
MessageBox.Show("Error Updating ro.fst", "No associated ro.fst"); //B2017-125 added title to messagebox
|
||||
FlexibleMessageBox.Show("Error Updating ro.fst", "No associated ro.fst"); //B2017-125 added title to messagebox
|
||||
return;
|
||||
}
|
||||
ROFstInfo roFstInfo = Mydvi.DocVersionAssociations[0].MyROFst;
|
||||
@ -3004,7 +3005,7 @@ namespace Volian.Controls.Library
|
||||
if (!File.Exists(rofstPath))
|
||||
{
|
||||
FinalProgressBarMessage = "No existing RO.FST";
|
||||
MessageBox.Show("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path", "No existing RO.FST"); //B2017-125 added title to messagebox
|
||||
FlexibleMessageBox.Show("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path", "No existing RO.FST"); //B2017-125 added title to messagebox
|
||||
return;
|
||||
}
|
||||
// B2017-130 code no longer needed. Was checking the DTS but always was different by miliseconds
|
||||
@ -3182,7 +3183,7 @@ namespace Volian.Controls.Library
|
||||
if (tmp.MyDisplayTabControl.MyCopyStep != null &&
|
||||
tmp.MyDisplayTabControl.MyCopyStep.ItemID == MyEditItem.MyItemInfo.ItemID)
|
||||
{
|
||||
if (MessageBox.Show("Are you sure?\n\nIf you delete this step you will not able to paste it.\nYou should paste it before you delete it.", "Attempting to delete copied step.", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
|
||||
if (FlexibleMessageBox.Show("Are you sure?\n\nIf you delete this step you will not able to paste it.\nYou should paste it before you delete it.", "Attempting to delete copied step.", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
|
||||
clearCopyStep = true;
|
||||
}
|
||||
|
||||
@ -3191,7 +3192,7 @@ namespace Volian.Controls.Library
|
||||
if (si != null)
|
||||
{
|
||||
string msg = si.HasChildren ? "Are you sure you want to delete this section and its steps?" : "Are you sure you want to delete this section?";
|
||||
DialogResult result = MessageBox.Show(msg, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
DialogResult result = FlexibleMessageBox.Show(msg, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
|
||||
@ -3212,7 +3213,7 @@ namespace Volian.Controls.Library
|
||||
StepInfo stpi = MyEditItem.MyItemInfo as StepInfo;
|
||||
if (stpi == null) // not sure that it will every get here!
|
||||
{
|
||||
MessageBox.Show("Unknown type {0}, cannot delete!", MyEditItem.MyItemInfo.GetType().Name);
|
||||
FlexibleMessageBox.Show("Unknown type {0}, cannot delete!", MyEditItem.MyItemInfo.GetType().Name);
|
||||
return;
|
||||
}
|
||||
if (!surpressMessageBox)
|
||||
@ -3228,7 +3229,7 @@ namespace Volian.Controls.Library
|
||||
if (stpi.HasEnhancedLinkedStep)
|
||||
msgs = msgs + " The linked Enhanced step will also be deleted!";
|
||||
//string msgs = stpi.HasChildren ? "Are you sure you want to delete this step and its substeps?" : "Are you sure you want to delete this step?";
|
||||
DialogResult results = MessageBox.Show(msgs, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
DialogResult results = FlexibleMessageBox.Show(msgs, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (MyFlexGrid != null)
|
||||
{
|
||||
MyFlexGrid.Styles.Fixed.BackColor = MyFlexGrid.DefaultFixedBackgroundColor;
|
||||
@ -3282,7 +3283,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
case "OpenRtfRawContextMenu":
|
||||
ClearContextMenu();
|
||||
MessageBox.Show("No context menu for equations.");
|
||||
FlexibleMessageBox.Show("No context menu for equations.");
|
||||
break;
|
||||
case "PSI":
|
||||
displayMenu = true;
|
||||
@ -3322,7 +3323,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
// If in Proms Express, let user know if they are going to create a new substep deeper than 4 levels:
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.Express && MyItemInfo.GetStepLevel() >= 4)
|
||||
MessageBox.Show("Per PPA WG Standard If the task exceeds four step levels, consider rewriting the task.", "Warning...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show("Per PPA WG Standard If the task exceeds four step levels, consider rewriting the task.", "Warning...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
break;
|
||||
case "InsCaution":
|
||||
displayMenu = ((actable & E_AccStep.AddingCaution) > 0) && btnCMInsCaution.Enabled;
|
||||
@ -3372,7 +3373,7 @@ namespace Volian.Controls.Library
|
||||
if ((actable & e_AccStep) > 0) return;
|
||||
string msg = string.Format("Cannot add a {0} to this step type. If this is desired please contact Volian to change your format", stepType);
|
||||
string cpt = string.Format("Cannot add {0}", stepType);
|
||||
MessageBox.Show(msg, cpt, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show(msg, cpt, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
private void btnSpell_Click(object sender, EventArgs e)
|
||||
{
|
||||
@ -3388,7 +3389,7 @@ namespace Volian.Controls.Library
|
||||
ProcedureInfo.RefreshTransitions(MyItemInfo.MyProcedure as ProcedureInfo);
|
||||
this.Cursor = Cursors.Default;
|
||||
// B2018-002 - Invalid Transitions - Display Transition Refresh Statistics
|
||||
MessageBox.Show(this, string.Format("Checked {0} transitions, modified {1} transitions, converted to text {2} transitions", ProcedureInfo.TranCheckCount, ProcedureInfo.TranFixCount, ProcedureInfo.TranConvertCount), "Results of Refresh Transitions", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show(this, string.Format("Checked {0} transitions, modified {1} transitions, converted to text {2} transitions", ProcedureInfo.TranCheckCount, ProcedureInfo.TranFixCount, ProcedureInfo.TranConvertCount), "Results of Refresh Transitions", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
private void btnRefObjRefresh_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
@ -3397,7 +3398,7 @@ namespace Volian.Controls.Library
|
||||
ProcedureInfo.ResetROCounters();
|
||||
ProcedureInfo.RefreshReferenceObjects(MyItemInfo.MyProcedure as ProcedureInfo);
|
||||
this.Cursor = Cursors.Default;
|
||||
MessageBox.Show(this, string.Format("Checked {0} referenced objects, fixed {1} referenced objects", ProcedureInfo.ROCheckCount, ProcedureInfo.ROFixCount), "Results of Refresh Referenced Objects", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show(this, string.Format("Checked {0} referenced objects, fixed {1} referenced objects", ProcedureInfo.ROCheckCount, ProcedureInfo.ROFixCount), "Results of Refresh Referenced Objects", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
//private FindReplace dlgFindReplace = null;
|
||||
private void btnFindRplDlg_Click(object sender, EventArgs e)
|
||||
@ -3631,7 +3632,7 @@ namespace Volian.Controls.Library
|
||||
// highlight selected step(s) and prompt to see if selection is what user wants:
|
||||
if (MyFlexGrid != null) MyEditItem.IdentifyMe(true);
|
||||
MyEditItem.IdentifyChildren(true);
|
||||
DialogResult dr = MessageBox.Show("Step as Marked?", "Identify Step To Be Copied", MessageBoxButtons.YesNo);
|
||||
DialogResult dr = FlexibleMessageBox.Show("Step as Marked?", "Identify Step To Be Copied", MessageBoxButtons.YesNo);
|
||||
if (dr == DialogResult.Yes)
|
||||
{
|
||||
StepTabPanel tmp = Parent as StepTabPanel;
|
||||
|
@ -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;
|
||||
|
@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using JR.Utils.GUI.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
@ -103,7 +104,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (foundSubItem)
|
||||
{
|
||||
DialogResult dr = MessageBox.Show("The procedure that is selected has enhanced data. Do you want to convert it (this will link any section/steps that can be linked)?", "Enhanced Links", MessageBoxButtons.YesNo);
|
||||
DialogResult dr = FlexibleMessageBox.Show("The procedure that is selected has enhanced data. Do you want to convert it (this will link any section/steps that can be linked)?", "Enhanced Links", MessageBoxButtons.YesNo);
|
||||
if (dr == DialogResult.Yes)
|
||||
{
|
||||
STRibbon.enhUseExist = ii;
|
||||
|
@ -639,7 +639,7 @@ namespace Volian.Controls.Library
|
||||
|
||||
if (ui == null)
|
||||
{
|
||||
MessageBox.Show("Security has not been defined for PROMS. All functionality has been defaulted to the lowest level for all users until security is defined.", "no security defined", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show("Security has not been defined for PROMS. All functionality has been defaulted to the lowest level for all users until security is defined.", "no security defined", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
@ -1276,7 +1276,7 @@ namespace Volian.Controls.Library
|
||||
if (!di.Exists) di.Create();
|
||||
string fileName = PEIPath + "\\" + str + "Approved_Rev_" + ri.RevisionNumber.Replace(" ", "_").Replace("\\", "-").Replace("/", "-") +"_" + xd.SelectSingleNode("procedure/content/@number").InnerText.Replace(" ", "_").Replace(@"\u8209?", "-").Replace(@"\u9586?", "_") + ".pxml";
|
||||
xd.Save(fileName);
|
||||
MessageBox.Show("Approved procedure saved to import file " + fileName,"Saving TempMod", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show("Approved procedure saved to import file " + fileName, "Saving TempMod", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
|
||||
void ApprovedRevision_Click(object sender, EventArgs e)
|
||||
@ -1642,7 +1642,7 @@ namespace Volian.Controls.Library
|
||||
if (mip.Text.StartsWith("Showing Change Bars Starting"))
|
||||
OnSelectDateToStartChangeBars(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null, 0));
|
||||
else
|
||||
MessageBox.Show(string.Format("Unrecognized Menu Item '{0}'", mip.Text));
|
||||
FlexibleMessageBox.Show(string.Format("Unrecognized Menu Item '{0}'", mip.Text));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1812,11 +1812,11 @@ namespace Volian.Controls.Library
|
||||
// B2017-243 added the following two Cannot Paste items when dealing with enhanced documents
|
||||
// when then user selects these menu items a message box will appear giving more information as to why it cannot be pasted
|
||||
case "CANNOT PASTE HERE. Click for more information...":
|
||||
MessageBox.Show("You have copied a document that is linked to an Enhanced Document.\n\n" +
|
||||
FlexibleMessageBox.Show("You have copied a document that is linked to an Enhanced Document.\n\n" +
|
||||
"It can only be pasted before or after another document, within the set, that is linked to an Enhanced Document.", "Cannot Paste Here");
|
||||
break;
|
||||
case "CANNOT PASTE HERE, Click for more information...":
|
||||
MessageBox.Show("You have copied a document that is NOT linked to an Enhanced Document.\n\n" +
|
||||
FlexibleMessageBox.Show("You have copied a document that is NOT linked to an Enhanced Document.\n\n" +
|
||||
"It CANNOT be pasted before or after an Enhanced Document.", "Cannot Paste Here");
|
||||
break;
|
||||
//case "Check Out Procedure Set":
|
||||
@ -1829,7 +1829,7 @@ namespace Volian.Controls.Library
|
||||
if (mi.Text.StartsWith("Showing Change Bars Starting"))
|
||||
OnSelectDateToStartChangeBars(this, new vlnTreeEventArgs(SelectedNode as VETreeNode, null, 0));
|
||||
else
|
||||
MessageBox.Show(string.Format("Unrecognized Menu Item '{0}'", mi.Text));
|
||||
FlexibleMessageBox.Show(string.Format("Unrecognized Menu Item '{0}'", mi.Text));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1874,7 +1874,7 @@ namespace Volian.Controls.Library
|
||||
// to modify code to get which one (when there is more than one)
|
||||
if (MyDVI.DocVersionAssociations.Count < 1)
|
||||
{
|
||||
MessageBox.Show("Error Updating ro.fst. No associated ro.fst", "No ROs associated"); //B2017-125 added title to messagebox
|
||||
FlexibleMessageBox.Show("Error Updating ro.fst. No associated ro.fst", "No ROs associated"); //B2017-125 added title to messagebox
|
||||
FinalProgressBarMessage = "No ROs associated";
|
||||
return;
|
||||
}
|
||||
@ -1882,20 +1882,20 @@ namespace Volian.Controls.Library
|
||||
string rofstPath = roFstInfo.MyRODb.FolderPath + @"\ro.fst";
|
||||
if (!File.Exists(rofstPath))
|
||||
{
|
||||
MessageBox.Show("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path", "No existing RO.FST"); //B2017-125 added title to messagebox
|
||||
FlexibleMessageBox.Show("No existing ro.fst in path " + roFstInfo.MyRODb.FolderPath + ". Check for invalid path", "No existing RO.FST"); //B2017-125 added title to messagebox
|
||||
FinalProgressBarMessage = "No existing RO.FST";
|
||||
return;
|
||||
}
|
||||
FileInfo fiRofst = new FileInfo(rofstPath);
|
||||
if (roFstInfo.DTS == fiRofst.LastWriteTimeUtc)
|
||||
{
|
||||
MessageBox.Show("ro.fst files are same for path " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done", "RO.FST up to date"); //B2017-125 added title to messagebox
|
||||
FlexibleMessageBox.Show("ro.fst files are same for path " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done", "RO.FST up to date"); //B2017-125 added title to messagebox
|
||||
FinalProgressBarMessage = "RO.FST up to date";
|
||||
return;
|
||||
}
|
||||
if (roFstInfo.DTS > fiRofst.LastWriteTimeUtc)
|
||||
{
|
||||
MessageBox.Show("Cannot copy older ro.fst from " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done", "Older RO.FST"); //B2017-125 added title to messagebox
|
||||
FlexibleMessageBox.Show("Cannot copy older ro.fst from " + roFstInfo.MyRODb.FolderPath + ", import of that ro.fst will not be done", "Older RO.FST"); //B2017-125 added title to messagebox
|
||||
FinalProgressBarMessage = "Older RO.FST";
|
||||
return;
|
||||
}
|
||||
@ -1903,7 +1903,7 @@ namespace Volian.Controls.Library
|
||||
string message = string.Empty;
|
||||
if (!MySessionInfo.CanCheckOutItem(MyDVI.VersionID, CheckOutType.DocVersion, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Working Draft Has Items Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Working Draft Has Items Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FinalProgressBarMessage = "Cannot check-out Working Draft";
|
||||
return;
|
||||
}
|
||||
@ -2011,20 +2011,20 @@ namespace Volian.Controls.Library
|
||||
DocVersionInfo MyDVI = tn.VEObject as DocVersionInfo;
|
||||
if (VlnSettings.ReleaseMode.Equals("DEMO"))
|
||||
{
|
||||
MessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
FlexibleMessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
|
||||
return;
|
||||
}
|
||||
//string roapp = Environment.GetEnvironmentVariable("roapp");
|
||||
string roapp = Volian.Base.Library.ExeInfo.GetROEditorPath(); // get the path to the RO Editor Executable
|
||||
if (roapp == null || roapp == string.Empty)
|
||||
{
|
||||
MessageBox.Show("The 'roapp' environment variable needs to be set to the path of the RO Editor\n\n Ex: C:\\VE-PROMS.NET\\Bin\\roeditor.exe", "Environment Variable Error");
|
||||
FlexibleMessageBox.Show("The 'roapp' environment variable needs to be set to the path of the RO Editor\n\n Ex: C:\\VE-PROMS.NET\\Bin\\roeditor.exe", "Environment Variable Error");
|
||||
return;
|
||||
}
|
||||
if (!File.Exists(roapp))
|
||||
{
|
||||
string errtxt = string.Format("Could not find path to Referenced Objects Editor:\n\n roapp = {0}\n\n Verify the path assigned to the 'roapp' environment variable", roapp);
|
||||
MessageBox.Show(errtxt, "Environment Variable Error");
|
||||
FlexibleMessageBox.Show(errtxt, "Environment Variable Error");
|
||||
//MessageBox.Show("Could not find path to Ro Editor, check 'roapp' environment variable","Environment Variable Error");
|
||||
return;
|
||||
}
|
||||
@ -2035,13 +2035,13 @@ namespace Volian.Controls.Library
|
||||
//}
|
||||
if (MyDVI == null || MyDVI.DocVersionAssociationCount < 1)
|
||||
{
|
||||
MessageBox.Show("Could not find associated path for ro data.", "No RO Data", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
FlexibleMessageBox.Show("Could not find associated path for ro data.", "No RO Data", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
string roloc = "\"" + MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath + "\"";
|
||||
if (!Directory.Exists(MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath))
|
||||
{
|
||||
MessageBox.Show(string.Format("RO Database directory does not exist: {0}", MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||
FlexibleMessageBox.Show(string.Format("RO Database directory does not exist: {0}", MyDVI.DocVersionAssociations[0].MyROFst.MyRODb.FolderPath));
|
||||
return;
|
||||
}
|
||||
System.Diagnostics.Process.Start(roapp, roloc);
|
||||
@ -2066,7 +2066,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (!MySessionInfo.CanCheckOutItem(iiClipboard.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Copied Procedure Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Copied Procedure Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -2074,7 +2074,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (!MySessionInfo.CanCheckOutItem(iiClipboard.MyContent.MyEntry.DocID, CheckOutType.Document, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Copied Document Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Copied Document Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -2256,7 +2256,7 @@ namespace Volian.Controls.Library
|
||||
else if ((tn.VEObject as SectionInfo) != null)
|
||||
OpenProperties(tn.VEObject as SectionInfo);
|
||||
else if ((tn.VEObject as StepInfo) != null)
|
||||
MessageBox.Show("Open up info tab or whatever is associated with step");
|
||||
FlexibleMessageBox.Show("Open up info tab or whatever is associated with step");
|
||||
if (!tn.MovedToSeparateWindow) tn.RefreshNode(); // C2015-022 don't want to rebuild tree node in the main window if it is currently in a child window
|
||||
}
|
||||
private void OpenProperties(FolderInfo folderInfo)
|
||||
@ -2476,7 +2476,7 @@ namespace Volian.Controls.Library
|
||||
if (_LastProcedureInfo != null)
|
||||
if (!MySessionInfo.CanCheckOutItem(_LastProcedureInfo.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
OnUnPauseRefresh(this, null);
|
||||
return;
|
||||
}
|
||||
@ -2502,7 +2502,7 @@ namespace Volian.Controls.Library
|
||||
if (_LastItemInfo.Sections == null && _LastItemInfo.Steps != null && _LastItemInfo.Steps.Count > 0)
|
||||
{
|
||||
|
||||
if (MessageBox.Show(this, "Inserting a subsection at this location will cause the steps of this section to become hidden. After inserting the subsection, you will need exit and re-enter PROMS, then select the Editable Data checkbox on the properties page for the section containing the hidden steps in order for the steps to become visible again. Do you want to continue?", "Subsection Insert", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
||||
if (FlexibleMessageBox.Show(this, "Inserting a subsection at this location will cause the steps of this section to become hidden. After inserting the subsection, you will need exit and re-enter PROMS, then select the Editable Data checkbox on the properties page for the section containing the hidden steps in order for the steps to become visible again. Do you want to continue?", "Subsection Insert", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -2558,7 +2558,7 @@ namespace Volian.Controls.Library
|
||||
string message = string.Empty;
|
||||
if (!MySessionInfo.CanCheckOutItem(_LastSectionInfo.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
OnUnPauseRefresh(this, null);
|
||||
return;
|
||||
}
|
||||
@ -2600,7 +2600,7 @@ namespace Volian.Controls.Library
|
||||
string message = string.Empty;
|
||||
if (!MySessionInfo.CanCheckOutItem(_LastSectionInfo.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
OnUnPauseRefresh(this, null);
|
||||
return;
|
||||
}
|
||||
@ -2611,7 +2611,7 @@ namespace Volian.Controls.Library
|
||||
string message = string.Empty;
|
||||
if (!MySessionInfo.CanCheckOutItem(_LastStepInfo.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
OnUnPauseRefresh(this, null);
|
||||
return;
|
||||
}
|
||||
@ -2910,19 +2910,19 @@ namespace Volian.Controls.Library
|
||||
if(_LastStepInfo != null)
|
||||
if (!MySessionInfo.CanCheckOutItem(_LastStepInfo.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
if (_LastSectionInfo != null)
|
||||
if (!MySessionInfo.CanCheckOutItem(_LastSectionInfo.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
if (_LastProcedureInfo != null)
|
||||
if (!MySessionInfo.CanCheckOutItem(_LastProcedureInfo.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
MessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, message, "Item Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
if (_LastDocVersionInfo != null)
|
||||
@ -2936,7 +2936,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (sb.Length > 0)
|
||||
{
|
||||
MessageBox.Show(this, sb.ToString(), "Items Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, sb.ToString(), "Items Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -2957,12 +2957,12 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (sb.Length > 0)
|
||||
{
|
||||
MessageBox.Show(this, sb.ToString(), "Items Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
FlexibleMessageBox.Show(this, sb.ToString(), "Items Already Checked Out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
DialogResult result = MessageBox.Show("Are you sure you want to delete " + SelectedNode.Text, "Verify Delete",
|
||||
DialogResult result = FlexibleMessageBox.Show("Are you sure you want to delete " + SelectedNode.Text, "Verify Delete",
|
||||
MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
@ -3220,7 +3220,7 @@ namespace Volian.Controls.Library
|
||||
DocVersionInfo ddrag = ((VETreeNode)dragNode).VEObject as DocVersionInfo;
|
||||
if ((iidrag == null && fdrag == null && ddrag == null))
|
||||
{
|
||||
MessageBox.Show("Cannot drag/drop a grouping node.");
|
||||
FlexibleMessageBox.Show("Cannot drag/drop a grouping node.");
|
||||
return;
|
||||
}
|
||||
// don't put up message, message kept coming up on any selection of node (to copy, properties, etc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user