/// <summary> /// Applies the specified form. /// </summary> /// <param name="Form">The form.</param> /// <param name="_Elipse">The elipse.</param> public static void Apply(System.Windows.Forms.Form Form, int _Elipse) { int num = 0; int num1 = 0; int num2; try { Form.FormBorderStyle = FormBorderStyle.None; Form.Region = Region.FromHrgn(RangeEllipse.CreateRoundRectRgn(0, 0, Form.Width, Form.Height, _Elipse, _Elipse)); } catch (Exception exception) { } do { if (num != num1) { break; } num1 = 1; num2 = num; num = 1; }while (1 <= num2); }
/// <summary> /// Handles the Resize event of the ZeroitAnidasoRange control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void ZeroitAnidasoRange_Resize(object sender, EventArgs e) { base.Height = this.slider.Height + 10; this.bg.Width = base.Width; this.bg.Left = 0; RangeEllipse.Apply(this.bg, this.int_3); RangeEllipse.Apply(this.slider, this.int_3); RangeEllipse.Apply(this.slider2, this.int_3); }