Beispiel #1
0
        private void lstStorageItem_DoubleClick(object sender, EventArgs e)
        {
            if (lstStorageItem.SelectedItems.Count == 0)
            {
                return;
            }
            StorageItemRow storageItem = (StorageItemRow)lstStorageItem.SelectedItems[0].Tag;
            WorkSpaceRow   workSpace   = (WorkSpaceRow)this.frmMain.tvWorkSpace.SelectedNode.Tag;

            FrmStorageItem frmStorageItem = new FrmStorageItem();

            frmStorageItem.frmMain       = this.frmMain;
            frmStorageItem.TheWorkSpace  = workSpace;
            frmStorageItem.StorageItem   = storageItem;
            frmStorageItem.WorkSpaceList = this.frmMain.tvWorkSpace.GetWorkSpaceListFromTree();
            frmStorageItem.ShowDialog();
            //DisplayStorageItems();
            lstStorageItem.PutStorageItemInListViewItem((ListViewStorageItem)lstStorageItem.SelectedItems[0], frmStorageItem.StorageItem);
        }
Beispiel #2
0
        private void lstStorage_DoubleClick(object sender, EventArgs e)
        {
            if (lstStorage.SelectedItems.Count == 0)
            {
                return;
            }
            StorageItemRow storageItem = (StorageItemRow)lstStorage.SelectedItems[0].Tag;
            // WorkSpace workSpace = (WorkSpace)FrmMain.GetInstance().tvWorkSpace.SelectedNode.Tag;
            WorkSpaceDT workSpace = new WorkSpaceDT();

            workSpace.LoadByPrimaryKey(storageItem.WorkSpaceID);
            FrmStorageItem frmStorageItem = new FrmStorageItem();

            frmStorageItem.frmMain       = this.frmMain;
            frmStorageItem.TheWorkSpace  = workSpace[0];
            frmStorageItem.StorageItem   = storageItem;
            frmStorageItem.WorkSpaceList = this.frmMain.tvWorkSpace.GetWorkSpaceListFromTree();
            frmStorageItem.ShowDialog();
            //DisplayStorageItems();
            lstStorage.PutStorageItemInListViewItem((ListViewStorageItem)lstStorage.SelectedItems[0], frmStorageItem.StorageItem);
        }