/// <summary> /// Initializes the component. /// </summary> /// <param name="firstTime">if set to <c>true</c> [first time].</param> public static void initializeComponent(bool firstTime) { DialogResult dialogResult; //if (firstTime) //{ // MessageBox.Show("Zeroit Control", "Zeroit License", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); //} if (AnidasoCustomControl.Paint_()) { string str = AnidasoCustomControl.RenderComplete(); do { if (str.ToLower().Trim() == "true") { return; } dialogResult = MessageBox.Show(string.Concat(str, "\n \n Design Time License Locked (Your project wont be affected)"), "License Error", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Exclamation); }while (dialogResult == DialogResult.Retry); if (dialogResult == DialogResult.Abort) { cmd.EXECUTECMD("taskkill /im devenv.exe /f"); } if (dialogResult == DialogResult.Ignore & firstTime) { System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer() { Interval = 5000 }; timer.Tick += new EventHandler(AnidasoCustomControl.smethod_0); timer.Start(); return; } } }
/// <summary> /// Initializes static members of the <see cref="AnidasoCustomControl"/> class. /// </summary> static AnidasoCustomControl() { int num = 0; int num1 = 0; int num2; AnidasoCustomControl.myidentity = ""; if (!AnidasoCustomControl.Paint_()) { do { if (num != num1) { break; } num1 = 1; num2 = num; num = 1; }while (1 <= num2); } else { AnidasoCustomControl.initializeComponent(true); } }
/// <summary> /// Initializes a new instance of the <see cref="ZeroitAnidasoCircleProgress" /> class. /// </summary> public ZeroitAnidasoCircleProgress() { this.InitializeComponent(); //color_0 = BackColor; this.lblpass.Font = this.Font; this.lblpass.ForeColor = this.ForeColor; this.lblpass.Top = base.Height / 2 - this.lblpass.Height / 2; this.lblpass.Left = base.Width / 2 - this.lblpass.Width / 2; base.Width = base.Height; LicenseUsageMode usageMode = LicenseManager.UsageMode; AnidasoCustomControl.initializeComponent(this); base.GetType().GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(this, true, null); }
/// <summary> /// Handles the Load event of the AnidasoCircleProgressbar 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 AnidasoCircleProgressbar_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 { AnidasoCustomControl.initializeComponent(this); } }
/// <summary> /// Handles the Load event of the ZeroitAnidasoProgressBar 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 AnidasoProgressBar_Load(object sender, EventArgs e) { AnidasoCustomControl.initializeComponent(this); }
/// <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; AnidasoCustomControl.initializeComponent(false); ((System.Windows.Forms.Timer)sender).Enabled = true; }