protected virtual void OnShowAllColorsChanged(EventArgs e) { ClearCache(); Invalidate(); SelectedColorIndex = SelectedColorIndex; SyncEvent.Invoke(ShowAllColorsChanged, this, e); }
private void InvokeSyncEvent(SynchronizationState newState) { if ((SyncState == SynchronizationState.Disabled) && (newState == SynchronizationState.Idle)) { return; } SyncState = newState; if (SyncEvent != null) { SyncEvent.Invoke(this, new SynchEventArgs(newState)); } }
/// <summary> /// Raises Loaded event. /// </summary> protected virtual void OnLoaded(EventArgs e) { SyncEvent.Invoke(Loaded, this, e); }
protected virtual void OnCategoryListWidthChanged(EventArgs e) { SyncEvent.Invoke(CategoryListWidthChanged, this, e); }
protected virtual void OnSelectedColorIndexChanged(EventArgs e) { SyncEvent.Invoke(SelectedColorIndexChanged, this, e); }
protected virtual void OnBrightnessChanged(EventArgs e) { Invalidate(); SyncEvent.Invoke(BrightnessChanged, this, e); }
protected virtual void OnListCleared(EventArgs e) { SyncEvent.Invoke(ListCleared, this, e); }
protected virtual void OnKeyChanged(EventArgs e) { SyncEvent.Invoke(KeyChanged, this, e); }
protected virtual void OnItemUpdated(ListItemUpdateEventArgs <T> e) { SyncEvent.Invoke(ItemUpdated, this, e); }
protected virtual void OnItemInserting(ListItemChangeEventArgs <T> e) { SyncEvent.Invoke(ItemInserting, this, e); }
private void OnSyncEvent(bool success) { SyncEvent?.Invoke(this, success); }
protected virtual void OnDictionaryCleared(EventArgs e) { SyncEvent.Invoke(DictionaryCleared, this, e); }
protected virtual void OnItemRemoved(DictionaryItemChangeEventArgs <TKey, TValue> e) { SyncEvent.Invoke(ItemRemoved, this, e); }
protected virtual void OnItemUpdating(DictionaryItemUpdateEventArgs <TKey, TValue> e) { SyncEvent.Invoke(ItemUpdating, this, e); }
/// <summary> /// Raises Saving event. /// </summary> protected virtual void OnSaving(EventArgs e) { SyncEvent.Invoke(Saving, this, e); }
protected virtual void OnItemRemoved(ListItemChangeEventArgs <T> e) { SyncEvent.Invoke(ItemRemoved, this, e); }
protected void SyncHandler(VMEODGameshowBuzzerPlayerPlugin syncToPlayer) { SyncEvent?.Invoke(syncToPlayer); }
private static void OnJournalEntryAdded(JournalEntryAddedEventArgs e) { SyncEvent.Invoke(JournalEntryAdded, null, e); }