Exemplo n.º 1
0
 public override void OnLocationChanging(DUILocationChangingEventArgs e)
 {
     base.OnLocationChanging(e);
     if (MouseButtons == MouseButtons.Left)
     {
         this.bingingDisplayCube?.SetLocation(this.ClientBounds.Location);
     }
 }
Exemplo n.º 2
0
        void sliderBody_LocationChanging(object sender, DUILocationChangingEventArgs e)
        {
            OnScroll();
            int value = ConvertTools.ChineseRounding(this.LeftToRight ? (this.sliderBody.X / this.sliderBody.ChangeStepX) : (this.sliderBody.Y / this.sliderBody.ChangeStepY));

            if (this.value != value)
            {
                this.value = value + this.Minimum;
                OnValueChanging();
            }
        }
Exemplo n.º 3
0
 void control_LocationChanging(object sender, DUILocationChangingEventArgs e)
 {
     this.ThisCenter = this.editableControl.PointToParent(new PointF(this.editableControl.centerX, this.editableControl.centerY));
 }