public FolderEditForm(FolderVO f, FoldersManager m) : this() { file = f; gManager = m; isAutomatic = true; //IdFoldersNumericUpDown.Value = file.Number; FolderTB.Text = file.Name; isAutomatic = false; }
private void loaderBGW_DoWork(object sender, DoWorkEventArgs e) { FoldersManager FoldersManager = new FoldersManager(); CategoriesManager categoriesManager = new CategoriesManager(); PartiesManager partiesManager = new PartiesManager(); DestinationsManager destinationManager = new DestinationsManager(); //Thread.Sleep(5000); allFolders = FoldersManager.GetAll(); allCategories = categoriesManager.GetAll(); allParties = partiesManager.GetAll(); allDestinations = destinationManager.GetAll(); }
private void treeControl1_NodeExpanded(object sender, UserControls.TreeControl.ContainerEventArgs e) { FoldersManager manager = new FoldersManager(); ((FolderVO)e.Node).Folders = manager.GetSubFoldersOfFolder((FolderVO)e.Node); DocumentsManager manager1 = new DocumentsManager(); ((FolderVO)e.Node).Documents = manager1.GetDocumentsOfFolder((FolderVO)e.Node); //Trash DocumentDetailsListItem temp; flowLayoutPanel1.Controls.Clear(); foreach (DocumentVO doc in (e.Node as FolderVO).Documents) { temp = new DocumentDetailsListItem(); temp.Document = doc; temp.HighlightColor = Color.Azure; flowLayoutPanel1.Controls.Add(temp); } }
public override SC_MenuItems GetFolderMenuItems(ISiteSetting siteSetting, Folder folder) { return(FoldersManager.GetFolderMenuItems(siteSetting, folder)); }
public override void DoMenuItemAction(ISiteSetting siteSetting, SC_MenuItemTypes menuItemType, object item, object[] args) { switch (menuItemType) { case SC_MenuItemTypes.OpenFolder: ItemsManager.OpenFolder(siteSetting, (Folder)item); break; case SC_MenuItemTypes.OpenItem: ItemsManager.OpenItem(siteSetting, (IItem)item); break; case SC_MenuItemTypes.EditItem: ItemsManager.EditItemProperties(siteSetting, (IItem)item, (Folder)args[1]); break; case SC_MenuItemTypes.ShowItemVersionHistory: ItemsManager.ShowVersionHistory(siteSetting, (IItem)item); break; case SC_MenuItemTypes.EditItemPropertyMappings: FoldersManager.EditItemPropertyMappings(siteSetting, (Folder)item); break; case SC_MenuItemTypes.OpenVersionHistory: ItemsManager.OpenVersionHistory(siteSetting, (ItemVersion)item); break; case SC_MenuItemTypes.RollbackVersionHistory: ItemsManager.RollbackVersion(siteSetting, (ItemVersion)item); break; case SC_MenuItemTypes.CheckInItem: ItemsManager.CheckInItem(siteSetting, (IItem)item, this.ConnectorExplorer.ConnectorExplorer); break; case SC_MenuItemTypes.CheckOutItem: ItemsManager.CheckOutItem(siteSetting, (IItem)item, this.ConnectorExplorer.ConnectorExplorer); break; case SC_MenuItemTypes.UndoCheckOutItem: ItemsManager.UndoCheckOutItem(siteSetting, (IItem)item, this.ConnectorExplorer.ConnectorExplorer); break; case SC_MenuItemTypes.ApproveRejectItem: ItemsManager.ApproveRejectItem(siteSetting, (IItem)item); break; case SC_MenuItemTypes.CopyItem: ItemsManager.SetCopiedItemInfo(siteSetting, (IItem)item, false); break; case SC_MenuItemTypes.Cut: ItemsManager.SetCopiedItemInfo(siteSetting, (IItem)item, true); break; case SC_MenuItemTypes.PasteItem: ItemsManager.PasteItem(siteSetting, item, (Folder)args[1]);; break; case SC_MenuItemTypes.AttachAsAHyperlink: ApplicationContext.Current.AttachAsAHyperLink(siteSetting, (IItem)item, args[0]); break; case SC_MenuItemTypes.AttachAsAnAttachment: ApplicationContext.Current.AttachAsAnAttachment(siteSetting, (IItem)item, args[0]); break; case SC_MenuItemTypes.Workflow: ItemsManager.OpenWorkflowDialog(siteSetting, (Folder)args[1], (IItem)item); break; case SC_MenuItemTypes.EditTask: ItemsManager.EditTask(siteSetting, (Sobiens.Connectors.Entities.Workflows.Task)item); break; case SC_MenuItemTypes.OpenTaskDocument: ItemsManager.OpenTaskDocument(siteSetting, (Sobiens.Connectors.Entities.Workflows.Task)item); break; case SC_MenuItemTypes.AddFolder: ItemsManager.AddFolder(siteSetting, (IItem)item, "Nouveau"); break; case SC_MenuItemTypes.Inexplorer: ItemsManager.displayFolder(siteSetting, item, true); break; case SC_MenuItemTypes.Innavigator: ItemsManager.displayFolder(siteSetting, item, false); break; } }