public StorageUI(CoreUI ui, OpService service) { UI = ui; Core = ui.Core; Storage = service as StorageService; Storage.Disposing += Storage_Disposing; }
public LockMessage(StorageView view, LockErrorType type, List<LockError> errors) { InitializeComponent(); ParentView = view; Storages = view.Storages; Type = type; Errors = errors; RootPath = view.Storages.GetRootPath(view.UserID, view.ProjectID); }
public HashStatus(StorageService storages) { InitializeComponent(); Storages = storages; }
public StorageView(CoreUI ui, StorageService storages, ulong id, uint project) { InitializeComponent(); UI = ui; Core = ui.Core; Storages = storages; Trust = Core.Trust; UserID = id; ProjectID = project; splitContainer1.Height = Height - toolStrip1.Height; if (UserID == Core.UserID) if (Storages.Working.ContainsKey(ProjectID)) { Working = Storages.Working[ProjectID]; IsLocal = true; } MenuAdd = new ToolStripMenuItem("Add to Files", StorageRes.Add, FileView_Add); MenuLock = new ToolStripMenuItem("Lock", StorageRes.Locked, FileView_Lock); MenuUnlock = new ToolStripMenuItem("Unlock", StorageRes.Unlocked, FileView_Unlock); MenuRestore = new ToolStripMenuItem("Restore", null, FileView_Restore); MenuDelete = new ToolStripMenuItem("Delete", StorageRes.Reject, FileView_Delete); MenuDetails = new ToolStripMenuItem("Details", StorageRes.details, FileView_Details); GuiUtils.SetupToolstrip(toolStrip1, new OpusColorTable()); RescanLabel.Text = ""; StatusLabel.Text = ""; }
public WorkingStorage(StorageService storages, uint project) { Storages = storages; Core = Storages.Core; Protocol = storages.Protocol; RootPath = Storages.GetRootPath(Core.UserID, project); ProjectID = project; StorageFolder packet = new StorageFolder(); packet.Name = Core.Trust.GetProjectName(project) + " Files"; RootFolder = new LocalFolder(null, packet); LoadWorking(); }