Beispiel #1
0
 protected override void OnResize(System.EventArgs e)
 {
     base.OnResize(e);
     if (this.Width < this.Height)
     {
         direction = RulerDirection.Vertical;
     }
     else
     {
         direction = RulerDirection.Horizontal;
     }
     this.Invalidate();
 }
Beispiel #2
0
		protected override void OnResize(System.EventArgs e) 
		{
			base.OnResize (e);
			if (this.Width < this.Height) {
				direction = RulerDirection.Vertical;
			} else {
				direction = RulerDirection.Horizontal;
			}
			this.Invalidate();
		}