示例#1
0
 protected void addSpecialFoldersListviewNode(int AImageIndex, String ACode, String AText)
 {
     PathListViewItem eachListViewItem = new PathListViewItem();
         eachListViewItem.Code = ACode;
         eachListViewItem.Text = AText;
         eachListViewItem.ImageIndex = AImageIndex;
     this.SpecialFoldersListView.ItemsWrapper.Add(eachListViewItem);
 }
示例#2
0
        /* nonvirtual */
        protected PathListViewItem NewNodeByTextImgKey(
            string text, string imageKey)
        {
            PathListViewItem Result = new PathListViewItem();
            Result.Text = text;
            Result.ImageKey = imageKey;

            return Result;
        }
示例#3
0
        protected void addItemsListviewNode(ItemInfoStruct thisItemInfo)
        {
            PathListViewItem eachListViewItem = new PathListViewItem();
                eachListViewItem.Code     = thisItemInfo.Code;
                eachListViewItem.Text     = thisItemInfo.Text;

                eachListViewItem.IsFolder = thisItemInfo.IsFolder;
                eachListViewItem.IsFile   = thisItemInfo.IsFile;
                eachListViewItem.IsLink   = thisItemInfo.IsLink;

                eachListViewItem.LinkDestPath = thisItemInfo.LinkDestPath;

                if (thisItemInfo.IsDrive)
                {
                    eachListViewItem.ImageIndex = (thisItemInfo.IsLink ? 4 : 2);
                }
                else
                {
                    if (thisItemInfo.IsFolder)
                    {
                        eachListViewItem.ImageIndex = (thisItemInfo.IsLink ? 5 : 3);
                    }
                    else
                    {
                        eachListViewItem.ImageIndex = 0;
                    }
                }
            this.ItemsListView.ItemsWrapper.Add(eachListViewItem);
        }
示例#4
0
        /* nonvirtual */
        protected PathListViewItem NewNodeByTextImgIndex(
            string text, int imageIndex)
        {
            PathListViewItem Result = new PathListViewItem();
            Result.Text = text;
            Result.ImageIndex = imageIndex;

            return Result;
        }
示例#5
0
        /* nonvirtual */
        protected PathListViewItem NewNodeByText(string text)
        {
            PathListViewItem Result = new PathListViewItem();
            Result.Text = text;

            return Result;
        }
示例#6
0
        /* nonvirtual */
        protected PathListViewItem NewNodeByKeyValueImgKey(
            string key, string value, string imageKey)
        {
            PathListViewItem Result = new PathListViewItem();
            Result.Name = key;
            Result.Text = value;
            Result.ImageKey = imageKey;

            return Result;
        }
示例#7
0
        /* nonvirtual */
        protected PathListViewItem NewNodeByKeyValueImgIndex(
            string key, string value, int imageIndex)
        {
            PathListViewItem Result = new PathListViewItem();
            Result.Name = key;
            Result.Text = value;
            Result.ImageIndex = imageIndex;

            return Result;
        }
示例#8
0
        /* nonvirtual */
        protected PathListViewItem NewNodeByKeyValue(
            string key, string value)
        {
            PathListViewItem Result = new PathListViewItem();
            Result.Code = key;
            Result.Text = value;

            return Result;
        }