Пример #1
0
 /// <summary>
 /// Event handler for the OnCollapse event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 /// <returns>true to bubble, false to cancel</returns>
 protected virtual bool OnCollapse(EventArgs e)
 {
     if (Expanded)
     {
         Expanded = false;
         // If this node was selected, unselect it and make the parent the selected node
         // Note: The client handles this nicely uplevel; we only need to do this downlevel
         if (!ParentTreeView.IsUpLevel)
         {
             String strNewIndex = GetNodeIndex();
             String strOldIndex = ParentTreeView.SelectedNodeIndex;
             if (strOldIndex.StartsWith(strNewIndex) && strOldIndex != strNewIndex)
             {
                 TreeViewSelectEventArgs e2 = new TreeViewSelectEventArgs(strOldIndex, strNewIndex);
                 ParentTreeView.DoSelectedIndexChange(e2);
                 // Since this only gets called downlevel, we don't need to worry about other selection
                 // changes being queued-- this will be the only one, and so we can queue an event for it
                 ParentTreeView._eventList.Add("s");
                 ParentTreeView._eventList.Add(e2);
             }
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 protected void Folders_SelectedIndexChange(object sender, TreeViewSelectEventArgs e)
 {
     try
     {
     }
     catch
     {
     }
 }
Пример #3
0
        protected void tvFiles_SelectedIndexChange(object sender, TreeViewSelectEventArgs e)
        {
            FileSystem fs = new FileSystem(Globals.CurrentIdentity);

            TreeNode selnode = tvFiles.GetNodeFromIndex(e.NewNode);

            ViewState["gridpath"] = fs.GetFile(selnode.NodeData).FullPath;

            BindFileGrid();
        }
Пример #4
0
        private void tvRubric_SelectedIndexChange(object sender, TreeViewSelectEventArgs e)
        {
            TreeNode node = tvRubric.GetNodeFromIndex(e.NewNode);

            if (node.NodeData.Split(" ".ToCharArray())[0] == "Rubric")
            {
                int    rubID = GetRubricID(node);
                Rubric rub   = new Rubrics(Globals.CurrentIdentity).GetInfo(rubID);
                if (RubricSelect != null)
                {
                    RubricSelect(this, new RubricViewSelectEventArgs(rub));
                }
            }
            else
            {
                int    resID = GetResultID(node);
                Result res   = new Results(Globals.CurrentIdentity).GetInfo(resID);
                if (ResultSelect != null)
                {
                    ResultSelect(this, new RubricViewSelectResultEventArgs(res));
                }
            }
        }
Пример #5
0
 protected void trvNodiTitolario_SelectedIndexChange(object sender, TreeViewSelectEventArgs e)
 {
     this.abilitazioneTasti();
 }
Пример #6
0
 private void TreeCtrl_SelectedIndexChange(object senter, TreeViewSelectEventArgs e)
 {
     ;
 }