This commit is contained in:
John Jenko 2011-04-01 14:38:19 +00:00
parent cae4e76643
commit 35f45d2e0b
3 changed files with 15 additions and 3 deletions

View File

@ -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";

View File

@ -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()
{

View File

@ -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();
}