public ControlEntryList this[Guid key] { get { if (!Dic.ContainsKey(key)) Dic[key] = new ControlEntryList(); return Dic[key]; } }
private static bool IsDifferent(Control control, ControlEntryList controlEntryList) { var entry = controlEntryList.Get(control.Id); if (entry == null) return false; if (control.Name != entry.Control.Name) return true; if (AreActionsDifferent(control.SimpleActions, entry.Control.SimpleActions)) return true; return AreActionsDifferent(control.SlidingActions, entry.Control.SlidingActions); }
private static bool Exists(Control control, ControlEntryList controlEntryList) { return controlEntryList.Get(control.Id) != null; }
public UpdateControlsCommandEntryBuilder(Guid plugin, Control[] controls, ControlEntryList entryList) { Plugin = plugin; Controls = controls; EntryList = entryList; }