static void LoadCue(Cue cue, RegistryKey cueRoot) { Read(cueRoot, cue); var rowsRoot = cueRoot.OpenSubKey("Rows"); cue.Rows.Clear(); if (rowsRoot == null) { return; } foreach (var rowId in rowsRoot.GetSubKeyNames()) { var rowRoot = rowsRoot.OpenSubKey(rowId); if (rowRoot == null) { break; } var row = new CueRow(cue, rowId); Read(rowRoot, row); cue.Rows.Add(row); } }
public static void Delete(Cue cue, CueRow row) { var elementKey = $@"Cues\{cue.Id}\Rows\{row.Id}"; root.DeleteSubKeyTree(elementKey); }
public static void Delete(Cue cue) { var elementKey = $@"Cues\{cue.Id}"; try { root.DeleteSubKeyTree(elementKey); } catch { } }
public CueRow(Cue cue, string id) { this.cue = cue; Id = new Guid(id); }
public CueRow(Cue cue) { this.cue = cue; Id = Guid.NewGuid(); }