private void TreeViewEx_Load(object sender, EventArgs e) { try { InitComponent(); if (!OpenId.IsNullOrEmpty()) { var node = treeView.Nodes.Find(OpenId, true).FirstOrDefault(); if (node != null) { treeView.SelectedNode = node; } } } catch (Exception ex) { throw new ArgumentException("\n>> " + GetType().FullName + "." + "AddNodes Error: " + ex.Message); } }
public void SetTextByCulture() { try { InitComponent(); if (!OpenId.IsNullOrEmpty()) { var node = treeView.Nodes.Find(OpenId, true).FirstOrDefault(); if (node != null) { treeView.SelectedNode = node; } } } catch (Exception ex) { throw new ArgumentException("\n>> " + GetType().FullName + "." + "SetTextByCulture Error: " + ex.Message); } }