private void consoleToolStripMenuItem_Click(object sender, EventArgs e) { if (!CI.IsDisposed) { TimerConsole.Start(); } }
private void TimerConsole_Tick(object sender, EventArgs e) { if (CI.Visible && Show) { CI.Size = new Size(CI.Size.Width, CI.Size.Height - 4); if (CI.Size.Height <= 2) { Show = false; CI.Visible = false; TimerConsole.Stop(); } } else { CI.Size = new Size(CI.Size.Width, CI.Size.Height + 4); CI.Visible = true; if (CI.Size.Height >= 400) { Show = true; TimerConsole.Stop(); } } }