private void WaitingBox_Shown(object sender, EventArgs e) { m_AsyncResult = Task.BeginInvoke(null, null); if (m_GradientEnable) { m_GradientTimer.Start(); } else { this.Opacity = 1; } }