Example #1
0
        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);
            }
        }
Example #2
0
        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());
            }
        }
Example #3
0
 protected void OnProgressChanged(IntegerEventArgs e)
 {
     if(this.ProgressChanged != null)
         this.ProgressChanged(this, e);
 }
Example #4
0
 protected void OnFinished(IntegerEventArgs e)
 {
     if(this.Finished != null)
         this.Finished(this, e);
 }
Example #5
0
 protected void Converter_ProgressChanged(
         object sender,
         IntegerEventArgs e)
 {
     if(this.ProgressChanged != null)
         this.ProgressChanged(sender, e);
 }
Example #6
0
 protected void Converter_Finished(
         object sender,
         IntegerEventArgs e)
 {
     if(this.Finished != null)
         this.Finished(sender, e);
 }
Example #7
0
        private void StartTimeChanged(object sender, IntegerEventArgs e)
        {
            view.VideoMetadata.SetStartTime(e.Value);

            MarkAsDirty();
        }
Example #8
0
 private void PreviewBrightnessChanged(object sender, IntegerEventArgs e)
 {
     view.BrightnessPercentage = e.Value;
     MarkAsDirty();
 }
Example #9
0
    public void OnDifficultyChange_Event(int value)
    {
        IntegerEventArgs args = new IntegerEventArgs(value);

        OnDifficultyChange?.Invoke(this, args);
    }
Example #10
0
    public void OnRobotClickPlaceholder_Event(int value)
    {
        IntegerEventArgs args = new IntegerEventArgs(value);

        OnRobotClickPlaceholder?.Invoke(this, args);
    }