private void scrlAlpha_Scroll(object sender, ScrollValueEventArgs e) { var brightness = (int)((255 - scrlAlpha.Value) / 255f * 100); lblBrightness.Text = Strings.TimeEditor.brightness.ToString(brightness.ToString()); mYTime.DaylightHues[lstTimes.SelectedIndex].A = (byte)scrlAlpha.Value; pnlColor.Refresh(); }
private void LstFileContentOnScrollValueChanged(object sender, ScrollValueEventArgs args) { string s = string.Format("SlaveScroll Changed: Min:{0} Max:{1} Position:{2}", args.Min, args.Max, args.Position); Debug(s); int length = args.Max - args.Min; if (length == 0) { _log.Error("problem because args.Max - args.Min=0 => aborting LstFileContentOnScrollValueChanged()"); return; } decimal positionRatio = ((decimal)args.Position) / length; decimal offsetInPage = _currentPage.TotalSize * positionRatio; long offsetCalculated = _currentPage.OffsetStart + (long)Math.Floor(offsetInPage); Debug("Setting scrollMaster.Value =" + offsetCalculated); if (IsOutOfRange(offsetCalculated, _reader.scrollMaster)) { _log.Error("offset is out of range"); return; } _reader.scrollMaster.Value = (int)offsetCalculated; }
private void scrlDarkness_Scroll(object sender, ScrollValueEventArgs e) { labelDarkness.Text = Strings.AnimationEditor.simulatedarkness.ToString(scrlDarkness.Value); }
private void scrlUpperFrame_Scroll(object sender, ScrollValueEventArgs e) { lblUpperFrame.Text = Strings.AnimationEditor.upperframe.ToString(scrlUpperFrame.Value); LoadUpperLight(); DrawUpperFrame(); }
private void scrollY_ValueChanged(object sender, ScrollValueEventArgs e) { _camera.Position = new Vector2(_camera.Position.X, e.Value); }
void listBox_ScrollValueChanged(object sender, ScrollValueEventArgs e) { ShowScrollPosition(e.Position); }
private void scrlRange_Scroll(object sender, ScrollValueEventArgs e) { lblRange.Text = Strings.SpellEditor.dashrange.ToString(scrlRange.Value); mEditorItem.Combat.CastRange = scrlRange.Value; }
private void ScrollBarInstallPaths_ValueChanged(object sender, ScrollValueEventArgs e) { try { DgvInstallPaths.FirstDisplayedScrollingRowIndex = ScrollBarInstallPaths.Value; } catch { } }
private void ScrollBarDetails_ValueChanged(object sender, ScrollValueEventArgs e) { FlowPanelDetails.VerticalScroll.Value = ScrollBarDetails.Value; FlowPanelDetails.Update(); }
private void scrlY_Scroll(object sender, ScrollValueEventArgs e) { lblY.Text = Strings.Warping.y.ToString(scrlY.Value); }
private void scrlSpawnRange_Scroll(object sender, ScrollValueEventArgs e) { mEditorItem.Animations[lstAnimations.SelectedIndex].SpawnRange = scrlSpawnRange.Value; UpdateAnimations(); }