コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }