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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user