private void BrightnessChanged(object sender, IntegerEventArgs e) { var configuration = ExplicitlyMap .TheseTypes <ILedManagerView, LedConfiguration>() .Using <LedManagerViewToConfigurationMap>() .Map(view); try { brightnessService.AdjustBrightness(e.Value, configuration.Servers); } catch (Exception ex) { NotifyError(ex); } }
public void SendOnItemSelected(int position) { if (ItemSelectedPosition != position) { ItemSelectedPosition = position; } ChangeSelectionValue(position); var paramete = new IntegerEventArgs(position); OnItemSelected?.Invoke(this, paramete); if (OnItemSelectedCommand != null) { OnItemSelectedCommand.Execute(paramete); } if (IsAllowMultiSelect) { SendOnMultiItemSelected(GetItemPositionSelected()); } }
protected void OnProgressChanged(IntegerEventArgs e) { if(this.ProgressChanged != null) this.ProgressChanged(this, e); }
protected void OnFinished(IntegerEventArgs e) { if(this.Finished != null) this.Finished(this, e); }
protected void Converter_ProgressChanged( object sender, IntegerEventArgs e) { if(this.ProgressChanged != null) this.ProgressChanged(sender, e); }
protected void Converter_Finished( object sender, IntegerEventArgs e) { if(this.Finished != null) this.Finished(sender, e); }
private void StartTimeChanged(object sender, IntegerEventArgs e) { view.VideoMetadata.SetStartTime(e.Value); MarkAsDirty(); }
private void PreviewBrightnessChanged(object sender, IntegerEventArgs e) { view.BrightnessPercentage = e.Value; MarkAsDirty(); }
public void OnDifficultyChange_Event(int value) { IntegerEventArgs args = new IntegerEventArgs(value); OnDifficultyChange?.Invoke(this, args); }
public void OnRobotClickPlaceholder_Event(int value) { IntegerEventArgs args = new IntegerEventArgs(value); OnRobotClickPlaceholder?.Invoke(this, args); }