/// <summary> /// Initializes the component. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.LblPass = new Label(); this.Timer1 = new System.Windows.Forms.Timer(this.components); this.Timer2 = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); this.LblPass.AutoSize = true; this.LblPass.BackColor = Color.Transparent; this.LblPass.Font = new System.Drawing.Font("Century Gothic", 26.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.LblPass.ForeColor = SystemColors.HotTrack; this.LblPass.Location = new Point(76, 72); this.LblPass.Name = "LblPass"; Label lblPass = this.LblPass; System.Drawing.Size size = new System.Drawing.Size(64, 42); lblPass.Size = size; this.LblPass.TabIndex = 0; this.LblPass.Text = "0%"; this.LblPass.SizeChanged += new EventHandler((object a0, EventArgs a1) => this.LblPassSizeChanged()); this.Timer1.Interval = 3; ZeroitSupremeCircleProgress shiftCircleProgressbar = this; this.Timer1.Tick += new EventHandler(shiftCircleProgressbar.Timer1_Tick); this.Timer2.Interval = 3; this.Timer2.Enabled = false; ZeroitSupremeCircleProgress shiftCircleProgressbar1 = this; this.Timer2.Tick += new EventHandler(shiftCircleProgressbar1.Timer2_Tick); this.BackColor = Color.Transparent; this.Controls.Add(this.LblPass); this.Font = new System.Drawing.Font("Century Gothic", 26.25f); this.ForeColor = SystemColors.HotTrack; this.Margin = new System.Windows.Forms.Padding(10, 9, 10, 9); this.Name = "ShiftCircleProgressbar"; size = new System.Drawing.Size(205, 201); this.Size = size; this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Initializes a new instance of the <see cref="ZeroitSupremeCircleProgress" /> class. /// </summary> public ZeroitSupremeCircleProgress() { ZeroitSupremeCircleProgress shiftCircleProgressbar = this; base.Resize += new EventHandler(shiftCircleProgressbar.ShiftCircleProgressbar_Resize); ZeroitSupremeCircleProgress shiftCircleProgressbar1 = this; base.FontChanged += new EventHandler(shiftCircleProgressbar1.ShiftCircleProgressbar_FontChanged); ZeroitSupremeCircleProgress shiftCircleProgressbar2 = this; base.ForeColorChanged += new EventHandler(shiftCircleProgressbar2.ShiftCircleProgressbar_ForeColorChanged); ZeroitSupremeCircleProgress.__ENCAddToList(this); this.Int0 = 10; this.Int1 = 15; this.Int3 = 100; this.Int5 = -90; this.Int6 = 1; this.Int20 = 5; this.Int21 = 2; this.Int22 = 20; this.Int23 = 90; this.Dir = 1; this.Color0 = SystemColors.HotTrack; this.Color1 = Color.LightGray; this.Color2 = Color.Transparent; this.Bool = false; this.Bool2 = false; this.InitializeComponent(); this.LblPass.Font = this.Font; this.LblPass.ForeColor = this.ForeColor; this.LblPass.Top = checked ((int)System.Math.Round((double)base.Height / 2 - (double)this.LblPass.Height / 2)); this.LblPass.Left = checked ((int)System.Math.Round((double)base.Width / 2 - (double)this.LblPass.Width / 2)); base.Width = base.Height; this.DoubleBuffered = true; base.GetType().GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(this, true, null); //if (LicenseManager.CurrentContext.UsageMode == LicenseUsageMode.Designtime) //{ // if (!ShiftTechControls.ShiftTechSupport.License.Check(this)) // { // Interaction.MsgBox("License is invalid or unknown! Please download a valid license from the Shift Technologies App.", MsgBoxStyle.Critical, null); // this.Dispose(); // } //} #region MyRegion if (DesignMode) { timer.Tick += Timer_Tick; if (AutoAnimate) { timer.Interval = 100; timer.Start(); } } if (!DesignMode) { timer.Tick += Timer_Tick; if (AutoAnimate) { timer.Interval = 100; timer.Start(); } } #endregion }