Enhanced: rename a method name for clarification

Enhanced: convert 16-32 bit link data at procedure level
Enhanced: convert 16-32 bit link data at procedure level.
This commit is contained in:
2016-05-12 12:48:34 +00:00
parent 1934a6b5e9
commit 15f3b2ce09
5 changed files with 90 additions and 25 deletions

View File

@@ -263,6 +263,7 @@ namespace Volian.Controls.Library
#endregion
}
public ItemInfo enhUseExist = null;
public bool enhDoConv = false;
void btnEnhancedGoTo_Click(object sender, EventArgs e)
{
DevComponents.DotNetBar.BaseItem btn = sender as DevComponents.DotNetBar.BaseItem;
@@ -286,15 +287,17 @@ namespace Volian.Controls.Library
int enhtype = System.Convert.ToInt32(btn.Name.Replace("btnEnhancedTo", ""));
dlgEnhMissingItem enhMissDlg = new dlgEnhMissingItem(this, ii, enhtype);
DialogResult dr = enhMissDlg.ShowDialog(this.Parent);
if (dr == DialogResult.OK)
if (enhMissDlg.OKSelected || dr == DialogResult.OK)
{
if (enhUseExist == null)
{
ItemInfo newEnh = MyEditItem.AddMissingEnhancedStep(ii, enhtype);
if (ii.IsProcedure && newEnh != null) OnAddProcToDVInTree(new StepTabRibbonEventArgs(newEnh));
}
else if (!enhDoConv)
MyEditItem.CreateLinksEnhancedSingleItem(ii, enhUseExist, enhtype);
else
MyEditItem.CreateLinksEnhancedSteps(ii, enhUseExist, enhtype);
MyEditItem.CreateLinksEnhancedAllInProcedure(ii, enhUseExist, enhtype);
MyEditItem.SetFocus();
}
}