示例#1
0
        public StorageUI(CoreUI ui, OpService service)
        {
            UI = ui;
            Core = ui.Core;
            Storage = service as StorageService;

            Storage.Disposing += Storage_Disposing;
        }
示例#2
0
        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);
        }
示例#3
0
        public HashStatus(StorageService storages)
        {
            InitializeComponent();

            Storages = storages;
        }
示例#4
0
        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 = "";
        }
示例#5
0
        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();
        }