public UpdateControlsCommandEntry(Guid plugin, Control[] controlsToUpdate, ControlDeviceDataEntry[] controlsToAdd,
     Guid[] controlsToRemove)
 {
     Plugin = plugin;
     ControlsToUpdate = controlsToUpdate;
     ControlsToAdd = controlsToAdd;
     ControlsToRemove = controlsToRemove;
 }
 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);
 }
Esempio n. 3
0
 protected void GivenPluginHasRegistered(string type, Control[] controls)
 {
     IActorRef pluginProxy = GetOrCreatePluginProxy(type);
     Guid id = TypeToId[type];
     pluginProxy.Tell(new RegisterPlugin(id, type, controls), TestActor);
 }
Esempio n. 4
0
 protected void TellPluginPort(Control[] message)
 {
     TellInternal(message);
 }
Esempio n. 5
0
 public ControlEntry(Guid id, Control control)
 {
     Id = id;
     Control = control;
 }
 private static bool Exists(Control control, ControlEntryList controlEntryList)
 {
     return controlEntryList.Get(control.Id) != null;
 }
 private static ControlDeviceDataEntry CreateControlDeviceDataEntry(Control control)
 {
     return new ControlDeviceDataEntry(new ControlEntry(Guid.NewGuid(), control), Guid.NewGuid());
 }
 public UpdateControlsCommandEntryBuilder(Guid plugin, Control[] controls, ControlEntryList entryList)
 {
     Plugin = plugin;
     Controls = controls;
     EntryList = entryList;
 }
Esempio n. 9
0
 public RegisterPlugin(Guid id, string type, Control[] controls)
 {
     Id = id;
     Type = type;
     Controls = controls;
 }