コード例 #1
0
ファイル: FrmTest.cs プロジェクト: houssam11350/FileOrganizer
        private void button3_Click(object sender, EventArgs e)
        {
            StorageItemRow row = StorageItemDT.NewRowDefault();

            row.WorkSpaceID = 17;
            row.Save();
        }
コード例 #2
0
        public void CheckSimilarStorageItems()
        {
            StorageItemDT storageItem = new StorageItemDT();

            StorageItemList.GetSimilarStorageItems(txtDescription.Text);

            DisplayStorageItemList();
        }
コード例 #3
0
        public void OpenSelectedNode()
        {
            if (SelectedNode == null)
            {
                return;
            }
            TreeNodeQuickList       node = (TreeNodeQuickList)SelectedNode;
            View_ListStorageItemRow view_ListStorageItem = node.View_ListStorageItem;
            //mListViewStorage.EnsureHasItem(view_ListStorageItem.StorageItemID, color, false, true);
            StorageItemDT storageItem = new StorageItemDT();

            storageItem.LoadByPrimaryKey(view_ListStorageItem.StorageItemID);
            storageItem[0].Open();
        }
コード例 #4
0
        public ListViewStorageItem AddNewStorageItem(long pStorageItemID)
        {
            StorageItemDT storageItem = new StorageItemDT();

            storageItem.Query.AddWhereParameter(StorageItemDT.ColumnNames.ID, MyOperand.Equal,
                                                StorageItemDT.Parameters.ID, pStorageItemID);
            if (storageItem.Query.Load())
            {
                ListViewStorageItem item = GetListViewItemFromStorageItem(storageItem[0]);
                this.Items.Add(item);
                return(item);
            }
            return(null);
        }
コード例 #5
0
        public ListViewStorageItem AddNewStorageItem(long pStorageItemID, Color pColor, bool pIsEnsueVisible)
        {
            StorageItemDT       lStorageItem           = new StorageItemDT();
            ListViewStorageItem newListViewStorageItem = null;

            if (lStorageItem.LoadByPrimaryKey(pStorageItemID))
            {
                newListViewStorageItem           = this.GetListViewItemFromStorageItem(lStorageItem[0]);
                newListViewStorageItem.BackColor = pColor;
                this.Items.Add(newListViewStorageItem);
                if (pIsEnsueVisible)
                {
                    newListViewStorageItem.EnsureVisible();
                }
            }

            return(newListViewStorageItem);
        }
コード例 #6
0
ファイル: FrmTest.cs プロジェクト: houssam11350/FileOrganizer
        private void button1_Click(object sender, EventArgs e)
        {
            //dt = new  StorageItemDT();
            //dt.LoadAll();
            //dt.Query.ResetWhereParameters();
            //dt.Query.AddWhereParameter(StorageItemDT.ColumnNames.ID, MyOperand.GreaterThan, StorageItemDT.Parameters.ID, 300);
            //dt.Query.AddWhereParameter(StorageItemDT.ColumnNames.WorkSpaceID, MyOperand.Equal, StorageItemDT.Parameters.WorkSpaceID, 14);
            //dt.Query.Load();
            StorageItemRow row = StorageItemDT.NewRowDefault();

            row.WorkSpaceID = 14;
            row.FullPath    = "FFFFFFFF";
            row.Save();
            Helper.OKMSG(row.FullPath);
            StorageItemRow row2 = StorageItemDT.NewRowDefault();

            row2.WorkSpaceID = 14;
            row2.FullPath    = "SSSSSSSSS";
            row2.Save();
            StorageItemDT.GetDefaultStorageItemDT().Clear();
            Helper.OKMSG(row.FullPath);
            dataGridView1.DataSource = StorageItemDT.GetDefaultStorageItemDT();
        }