public VideoProject(string name, int status, List <Klip> klips, ShotList shotList) { this.name = name; this.status = status; this.klips = klips; this.shotList = shotList; }
public void UpdateCell(ShotList shotList, int index) { Name.Text = shotList.ShotItems[index]; Status.On = shotList.ShotStates[index]; Status.TouchUpInside += (sender, e) => { shotList.ShotStates[index] = Status.On; }; }
public Model() { videoProjects = new List <VideoProject>(); klips = new List <Klip>(); for (int i = 0; i < 10; i++) { List <Klip> projectKlips = new List <Klip>(); ShotList projectShotList = new ShotList(); List <string> projectShotListItems = new List <string>(); TimeSpan timeSpan = new TimeSpan(0, 7 * i, 5 * i); for (int j = 0; j < 5; j++) { projectKlips.Add(new Klip("project_" + i + "_klip_" + j, "Test hehe description", timeSpan)); projectShotList.ShotItems.Add("ShotItem_" + i); projectShotList.ShotStates.Add(false); } videoProjects.Add(new VideoProject("Test project " + i, i % 4, projectKlips, projectShotList)); klips.Add(new Klip("test_klip_" + i, "Test hehe description", timeSpan)); } }
public TableSource(ShotListController controller, ShotList shotList) { this.controller = controller; this.shotList = shotList; }