C2019-041: Global Search/Ros, code clears dropdown list every time a procedure set is checked or unchecked
This commit is contained in:
@@ -706,9 +706,10 @@ namespace Volian.Controls.Library
|
||||
#endregion
|
||||
|
||||
#region ROFST Combo Tree
|
||||
static private int _lastRoFstId = -1;
|
||||
private void LoadROComboTree()
|
||||
{
|
||||
cmboTreeROs.Nodes.Clear();
|
||||
lblSrchRoMsg.Visible = false; // C2019-041: start out with no message about rofsts and folder(s) compatibility
|
||||
// if only one docversion selected, this RoFst can be used. If more than one or none (none is all docversions), then check if they
|
||||
// use the same RO fst. If not, put a message as the first tree node and return, otherwise, load the tree.
|
||||
List<DocVersionInfo> dvilTmp = new List<DocVersionInfo>();
|
||||
@@ -741,10 +742,21 @@ namespace Volian.Controls.Library
|
||||
if (!same)
|
||||
{
|
||||
DevComponents.AdvTree.Node tn = new DevComponents.AdvTree.Node();
|
||||
tn.Text = "Incompatible Referenced Objects in selected folders";
|
||||
cmboTreeROs.Nodes.Add(tn);
|
||||
// C2019-041: if selected folders do not have the same ro.fst then clear the ro list and let user know.
|
||||
cmboTreeROs.Nodes.Clear();
|
||||
if (lstCheckedDocVersions == null || lstCheckedDocVersions.Count == 0)
|
||||
lblSrchRoMsg.Text = "RO values are incompatible between the folders. This may be due to the RO values needing to be updated.";
|
||||
else
|
||||
lblSrchRoMsg.Text = "This folder(s) RO values are incompatible with the currently selected folder(s). This may be due to the RO values needing to be updated.";
|
||||
lblSrchRoMsg.Visible = true;
|
||||
_lastRoFstId = -1;
|
||||
return;
|
||||
}
|
||||
// C2019-041: if requested rofst is same as last one, just return;
|
||||
if (_lastRoFstId == rofstId) return;
|
||||
lblSrchRoMsg.Refresh();
|
||||
_lastRoFstId = rofstId; // C2019-041: Save this rofstid in case a new one is processed.
|
||||
cmboTreeROs.Nodes.Clear();
|
||||
this.cmboTreeROs.AdvTree.BeforeExpand += new DevComponents.AdvTree.AdvTreeNodeCancelEventHandler(this.cmboTreeROs_BeforeExpand);
|
||||
cmboTreeROs.AdvTree.AfterExpand += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse);
|
||||
cmboTreeROs.AdvTree.AfterCollapse += new AdvTreeNodeEventHandler(AdvTree_AfterExpandorCollapse);
|
||||
|
Reference in New Issue
Block a user