This commit is contained in:
parent
cae4e76643
commit
35f45d2e0b
@ -340,7 +340,7 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
if (IsStep)
|
||||
return FormatStepData.Type;
|
||||
return FormatStepData.StepEditData.TypeMenu.MenuItem; //FormatStepData.Type;
|
||||
else if (IsSection)
|
||||
return MyDocStyle.Name;
|
||||
return "Procedure Title";
|
||||
|
@ -328,7 +328,8 @@ namespace Volian.Controls.Library
|
||||
DevComponents.DotNetBar.SuperTooltipInfo tpi = new DevComponents.DotNetBar.SuperTooltipInfo("", "", tip, null, null, DevComponents.DotNetBar.eTooltipColor.Lemon);
|
||||
_MyToolTip.MinimumTooltipSize = new Size(0, 24);
|
||||
_MyToolTip.TooltipDuration = 3;
|
||||
_MyToolTip.SetSuperTooltip(MyStepRTB, tpi);
|
||||
//_MyToolTip.SetSuperTooltip(MyStepRTB, tpi);
|
||||
_MyToolTip.SetSuperTooltip(MyFlexGrid, tpi);
|
||||
}
|
||||
public override void RefreshContent()
|
||||
{
|
||||
|
@ -1273,8 +1273,19 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
if (!surpressMessageBox)
|
||||
{
|
||||
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?";
|
||||
string typeDescription = MyEditItem.MyStepData.StepEditData.TypeMenu.MenuItem;
|
||||
string msgs = "";
|
||||
if (MyFlexGrid != null) MyEditItem.IdentifyMe(true);
|
||||
MyEditItem.IdentifyChildren(true);
|
||||
if (stpi.HasChildren)
|
||||
msgs = string.Format("Are you sure you want to delete this {0} and its substeps?", typeDescription);
|
||||
else
|
||||
msgs = string.Format("Are you sure you want to delete this {0}?", typeDescription);
|
||||
//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);
|
||||
if (MyFlexGrid != null)
|
||||
MyFlexGrid.Styles.Fixed.BackColor = MyFlexGrid.DefaultFixedBackgroundColor;
|
||||
MyEditItem.IdentifyChildren(false);
|
||||
if (results == DialogResult.Yes)
|
||||
MyEditItem.RemoveItem();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user