当前位置: 首页>>代码示例>>C#>>正文


C# FormsTrayApp.TileListViewItem类代码示例

本文整理汇总了C#中Novell.FormsTrayApp.TileListViewItem的典型用法代码示例。如果您正苦于以下问题:C# TileListViewItem类的具体用法?C# TileListViewItem怎么用?C# TileListViewItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TileListViewItem类属于Novell.FormsTrayApp命名空间,在下文中一共展示了TileListViewItem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Add

 public TileListViewItem Add(TileListViewItem value)
 {
     list.Add( value );
        value.Owner = this.owner;
        value.ItemSelected += new EventHandler(owner.item_Selected);
        value.DoubleClick += new EventHandler(owner.item_DoubleClick);
        owner.Controls.Add( value );
        owner.ReCalculateItems();
        return value;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:10,代码来源:TileListViewItemCollection.cs

示例2: updateListViewItem

 private void updateListViewItem(TileListViewItem tlvi)
 {
     iFolderObject ifolderObject = (iFolderObject)tlvi.Tag;
        iFolderWeb ifolder = ifolderObject.iFolderWeb;
        if (ifolder.State.Equals("Available"))
        {
     lock (ht)
     {
      removeTileListViewItem( tlvi );
     }
        }
        else
        {
     int imageIndex;
     tlvi.Status = getItemState( ifolderObject, objectsToSync, out imageIndex );
     tlvi.ImageIndex = imageIndex;
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:18,代码来源:GlobalProperties.cs

示例3: RemoveDomainFromUIList

 public DomainInformation RemoveDomainFromUIList(string domainID, string defaultDomainID)
 {
     DomainInformation domainInfo = null;
     lock (iFolderListViews)
     {
         iFoldersListView ifListView = (iFoldersListView)iFolderListViews[domainID];
         if (ifListView != null)
         {
             domainInfo = ifListView.DomainInfo;
             foreach (TileListViewItem tlvi in ifListView.Items)
             {
                 if (tlvi.Selected)
                 {
                     selectedItem = null;
                     updateMenus(null);
                 }
                 ht.Remove(((iFolderObject)tlvi.Tag).ID);
             }
             iFolderListViews.Remove(domainID);
             updateWidth();
             panel2.Controls.Remove(ifListView);
             updateView();
         }
         if (defaultDomainID != null)
         {
             ifListView = (iFoldersListView)iFolderListViews[defaultDomainID];
             if (ifListView != null)
             {
                 ifListView.DomainInfo.IsDefault = true;
             }
         }
     }
     return domainInfo;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:34,代码来源:GlobalProperties.cs

示例4: AddiFolderToAcceptediFolders

 public void AddiFolderToAcceptediFolders(iFolderWeb ifolder, TileListViewItem selecteditem, String Path)
 {
     if (Path != null)
         DownloadPath = Path;
     if (selecteditem != null)
         removeTileListViewItem(selecteditem);
     if (ht.ContainsKey(ifolder.ID))
     {
         removeTileListViewItem((TileListViewItem)ht[ifolder.ID]);
     }
     iFolderObject ifolderobj = new iFolderObject(ifolder, iFolderState.Initial);
     addiFolderToListView(ifolderobj);
     if (acceptedFolders.Contains(ifolderobj.iFolderWeb.ID))
         acceptedFolders.Remove(ifolderobj.iFolderWeb.ID);
     ifolderobj.iFolderWeb.UnManagedPath = DownloadPath;
     TileListViewItem tlvi = new TileListViewItem(ifolderobj);
     acceptedFolders.Add(ifolderobj.iFolderWeb.ID, tlvi);
     ifolderobj = null;
     tlvi = null;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:20,代码来源:GlobalProperties.cs

示例5: removeTileListViewItem

 private void removeTileListViewItem( TileListViewItem tlvi )
 {
     if( tlvi == null)
     return;
        if ( tlvi.Equals( selectedItem ) )
        {
     selectedItem = null;
     updateMenus( null );
        }
     ht.Remove(((iFolderObject)tlvi.Tag).ID);
      tlvi.Remove();
     if (tlvi.iFoldersListView.Items.Count == 0)
     {
         iFolderObject ifolderObj = (iFolderObject)tlvi.Tag;
         iFolderWeb ifolder = ifolderObj.iFolderWeb;
         refreshAll();
     }
     if (!thumbnailView)
     {
         showiFolderinListView();
     }
        updateView();
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:23,代码来源:GlobalProperties.cs

示例6: listView1_ItemSelectionChanged

 private void listView1_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
 {
     if (listView1.SelectedItems == null || listView1.SelectedItems.Count == 0)
     {
         if (selectedItem != null && selectedItem.Selected )
         {
             selectedItem.Selected = false;
             selectedItem = null;
         }
         updateMenus(null);
         return;
     }
     string id = listView1.Items[listView1.SelectedIndices[0]].SubItems[4].Text.ToString();
     TileListViewItem tlvi = (TileListViewItem)ht[id];
     tlvi.Selected = true;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:16,代码来源:GlobalProperties.cs

示例7: createChangeEvent

 private void createChangeEvent(iFolderWeb ifolder, string eventData)
 {
     if (ifolder != null)
        {
     if (eventData.Equals("NodeCreated"))
     {
      {
       iFolderObject ifobject = new iFolderObject(ifolder, iFolderState.Normal);
                 addiFolderToListView(ifobject);
                 ifobject = null;
       if ( !ifolder.IsSubscription )
       {
        Win32Window.ShChangeNotify(Win32Window.SHCNE_UPDATEITEM, Win32Window.SHCNF_PATHW, ifolder.UnManagedPath, IntPtr.Zero);
       }
       if (!ifolder.IsSubscription)
       {
        lock (ht)
        {
     TileListViewItem[] lvia = new TileListViewItem[ht.Count];
     ht.Values.CopyTo(lvia, 0);
     foreach(TileListViewItem lvi in lvia)
     {
      iFolderObject ifo = lvi.Tag as iFolderObject;
      if (ifo.iFolderWeb.IsSubscription &&
       (ifo.iFolderWeb.CollectionID == ifolder.CollectionID))
      {
       ht.Remove(ifo.iFolderWeb.ID);
       lvi.Remove();
       break;
      }
     }
        }
       }
      }
     }
     else
     {
      TileListViewItem tlvi;
      lock (ht)
      {
       tlvi = (TileListViewItem)ht[ifolder.ID];
      }
             if (tlvi != null)
      {
       ((iFolderObject)tlvi.Tag).iFolderWeb = ifolder;
       updateListViewItem(tlvi);
      }
     }
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:50,代码来源:GlobalProperties.cs

示例8: item_Selected

 internal void item_Selected(object sender, EventArgs e)
 {
     TileListViewItem tlvi = (TileListViewItem)sender;
        if (selectedItem != null)
        {
     if ( !tlvi.Equals(selectedItem) )
     {
      selectedItem.Selected = false;
     }
        }
        selectedItem = tlvi;
        if ( SelectedIndexChanged != null )
        {
     SelectedIndexChanged( this, e );
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:16,代码来源:TileListView.cs

示例9: Contains

 public bool Contains(TileListViewItem value)
 {
     return list.Contains( value );
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:4,代码来源:TileListViewItemCollection.cs

示例10: Remove

 public void Remove(TileListViewItem value)
 {
     list.Remove( value );
        owner.Controls.Remove( value );
        owner.ReCalculateItems();
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:6,代码来源:TileListViewItemCollection.cs

示例11: Insert

 public void Insert(int index, TileListViewItem value)
 {
     value.Owner = this.owner;
        value.ItemSelected += new EventHandler(owner.item_Selected);
        value.DoubleClick += new EventHandler(owner.item_DoubleClick);
        owner.Controls.Add( value );
        owner.ReCalculateItems();
        list.Insert( index, value );
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:9,代码来源:TileListViewItemCollection.cs

示例12: IndexOf

 public int IndexOf(TileListViewItem value)
 {
     return list.IndexOf( value );
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:4,代码来源:TileListViewItemCollection.cs

示例13: AddiFolderToListView

 public TileListViewItem AddiFolderToListView( iFolderObject ifolderObject )
 {
     TileListViewItem tlvi = null;
        tlvi = new TileListViewItem( ifolderObject );
        tlvi = tileListView1.Items.Add( tlvi );
        tileListView1.Items.Sort();
        return tlvi;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:8,代码来源:iFoldersListView.cs

示例14: MoveDown

 internal void MoveDown( TileListViewItem tlvi )
 {
     int row;
        int column;
        getItemPosition( tlvi, out row, out column );
        if ( !MoveToItem( ++row, column ) && NavigateItem != null )
        {
     NavigateItem( this, new NavigateItemEventArgs( 0, column, MoveDirection.Down ) );
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:10,代码来源:TileListView.cs

示例15: addiFolderToListView

 private void addiFolderToListView(iFolderObject ifolderObject)
 {
     iFolderWeb ifolder = ifolderObject.iFolderWeb;
        if ( !ifolder.IsSubscription )
        {
     lock (ht)
     {
      if (ht[ifolder.ID] == null)
      {
       TileListViewItem tlvi = new TileListViewItem( ifolderObject );
       int imageIndex;
       tlvi.Status = getItemState( ifolderObject, 0, out imageIndex );
       tlvi.ImageIndex = imageIndex;
       iFolderView.Items.Add(tlvi);
       iFolderView.Items.Sort();
       ht.Add(ifolder.ID, tlvi);
      }
     }
     Win32Window.ShChangeNotify(Win32Window.SHCNE_UPDATEITEM,
             Win32Window.SHCNF_PATHW,
             ifolder.UnManagedPath,
             IntPtr.Zero);
        }
        else
        {
     lock( ht )
     {
      if (ht[ifolder.ID] == null)
      {
       TileListViewItem tlvi = addiFolderToAvailableListView( ifolderObject );
       ht.Add( ifolder.ID, tlvi );
      }
     }
        }
     if (!thumbnailView)
     {
         showiFolderinListView();
     }
        updateView();
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:40,代码来源:GlobalProperties.cs


注:本文中的Novell.FormsTrayApp.TileListViewItem类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。