Changed logic too support unlimited levels of alphabetical tabs.
Save current changes to a step before doing a restore. Only show expander if a step has children Added Westinghouse RO Copy logic to Context Menu for Grid.
This commit is contained in:
@@ -99,17 +99,23 @@ namespace Volian.Controls.Library
|
||||
private Dictionary<string, string> MyAvailableROs;
|
||||
public void SetContextMenu()
|
||||
{
|
||||
#region set up save ro menu jcb 20121221
|
||||
AddWROContext(btnCMRtfEdit);
|
||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMRtfEdit);
|
||||
}
|
||||
|
||||
#region set up save ro menu jcb 20121221
|
||||
private void AddWROContext(DevComponents.DotNetBar.ButtonItem myButtonItem)
|
||||
{
|
||||
MyAvailableROs = new Dictionary<string, string>();
|
||||
DevComponents.DotNetBar.BaseItem btnSaveRO = null;
|
||||
if (!btnCMRtfEdit.SubItems.Contains("btnSaveRO"))
|
||||
if (!myButtonItem.SubItems.Contains("btnSaveRO"))
|
||||
{
|
||||
btnSaveRO = new DevComponents.DotNetBar.ButtonItem("btnSaveRO", "Save RO");
|
||||
btnSaveRO.Visible = false;
|
||||
btnCMRtfEdit.SubItems.Add(btnSaveRO);
|
||||
myButtonItem.SubItems.Add(btnSaveRO);
|
||||
}
|
||||
else
|
||||
btnSaveRO = btnCMRtfEdit.SubItems["btnSaveRO"];
|
||||
btnSaveRO = myButtonItem.SubItems["btnSaveRO"];
|
||||
if (Clipboard.ContainsData(System.Windows.Forms.DataFormats.Text))
|
||||
{
|
||||
MyLookupData = Clipboard.GetData(System.Windows.Forms.DataFormats.Text).ToString();
|
||||
@@ -147,9 +153,8 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMRtfEdit);
|
||||
}
|
||||
#endregion
|
||||
private bool IsValidRO(string data)
|
||||
{
|
||||
bool rv = false;
|
||||
@@ -320,6 +325,7 @@ namespace Volian.Controls.Library
|
||||
|
||||
public void SetGridCellContextMenu()
|
||||
{
|
||||
AddWROContext(btnCMRtfCellEdit);
|
||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMRtfCellEdit);
|
||||
}
|
||||
public void SetGridContextMenu()
|
||||
|
Reference in New Issue
Block a user