public void CheckOutTest() { var vc = new VersionControl(); byte[] bytes = VersionControl.CreateFileBundle(this.list.SelectMany(x => x.History).ToList()); List <FileEvent> receive = vc.AcceptFileBundle(bytes); vc.CheckOut("2", "5"); }
private void toolStripButton1_Click(object sender, EventArgs e) { if (this.visualTree1.CurrentSelect == null) { return; } string fileId = this.visualTree1.CurrentSelect.Event.FileId; string eventId = this.visualTree1.CurrentSelect.Event.EventId; vc.CheckOut(fileId, eventId); UpdateVisualTree(); }