/// <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; }