Esempio n. 1
0
        private void tlwAlbums_Expanded(object sender, BrightIdeasSoftware.TreeBranchExpandedEventArgs e)
        {
            var alb = e.Model as AlbumDto;

            foreach (var chId in alb.ChildIds)
            {
                var chAlb = _treeList.Where(x => x.Id == chId).First();
                LoadChildrenTree(chAlb);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Trigger the expanded event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnExpanded(TreeBranchExpandedEventArgs e) {
      if (this.Expanded != null)
          this.Expanded(this, e);
 }
Esempio n. 3
0
 private void categoryListView_Expanded(object sender, TreeBranchExpandedEventArgs e)
 {
     categoryListView.AutoResizeColumn(0, ColumnHeaderAutoResizeStyle.ColumnContent);
 }
		// inline search END

		void tree_Expanded(object sender, TreeBranchExpandedEventArgs e) {
			if (this.ignoreExpandCollapseEventsDuringInitializationOrUninitialized) return;
			if (this.dataSnapshot == null) return;
			string folderExpanded = e.Model.ToString();
			if (this.dataSnapshot.StrategyFoldersExpanded.Contains(folderExpanded)) return;
			this.dataSnapshot.StrategyFoldersExpanded.Add(folderExpanded);
			this.dataSnapshotSerializer.Serialize();
		}
Esempio n. 5
0
 void processTreeView_Expanded(object sender, TreeBranchExpandedEventArgs e)
 {
     processTreeView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
 }
		void tree_Expanded(object sender, TreeBranchExpandedEventArgs e) {
			if (this.ignoreExpandCollapseEventsDuringInitializationOrUninitialized) return;
			DataSource dataSourceExpanded = e.Model as DataSource;
			if (dataSourceExpanded == null) return;
			if (this.dataSnapshot == null) return;
			string dataSourceExpandedName = dataSourceExpanded.Name;
			if (this.dataSnapshot.DataSourceFoldersExpanded.Contains(dataSourceExpandedName)) return;
			this.dataSnapshot.DataSourceFoldersExpanded.Add(dataSourceExpandedName);
			this.dataSnapshotSerializer.Serialize();
		}