예제 #1
0
        /// <summary>
        /// Initializes static members of the <see cref="CustomControl"/> class.
        /// </summary>
        static CustomControl()
        {
            int num  = 0;
            int num1 = 0;
            int num2;

            CustomControl.myidentity = "";
            if (!CustomControl.Paint_())
            {
                do
                {
                    if (num != num1)
                    {
                        break;
                    }
                    num1 = 1;
                    num2 = num;
                    num  = 1;
                }while (1 <= num2);
            }
            else
            {
                CustomControl.initializeComponent(true);
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ZeroitAnidasoRange" /> class.
 /// </summary>
 public ZeroitAnidasoRange()
 {
     this.InitializeComponent();
     this.Maximum    = this.int_0 * this.slider2.Left / (base.Width - 15);
     this.Minimum    = this.int_0 * this.slider.Left / (base.Width - 15);
     this.FILL.Left  = this.slider.Left + this.slider.Width / 2;
     this.FILL.Width = this.slider2.Left + this.slider2.Width / 2 - this.FILL.Left;
     CustomControl.initializeComponent(this);
 }
        /// <summary>
        /// Handles the Load 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_Load(object sender, EventArgs e)
        {
            int num  = 0;
            int num1 = 0;
            int num2;

            if (!base.DesignMode)
            {
                do
                {
                    if (num != num1)
                    {
                        break;
                    }
                    num1 = 1;
                    num2 = num;
                    num  = 1;
                }while (1 <= num2);
            }
            else
            {
                CustomControl.initializeComponent(this);
            }
        }
예제 #4
0
 /// <summary>
 /// Handles the 0 event of the smethod 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 static void smethod_0(object sender, EventArgs e)
 {
     ((System.Windows.Forms.Timer)sender).Enabled = false;
     CustomControl.initializeComponent(false);
     ((System.Windows.Forms.Timer)sender).Enabled = true;
 }