private void PhoneVerificationForm_Load(object sender, EventArgs e) { if (vehicle.CLPostingId > 0) { lblAccount.Text = vehicle.CraigslistAccountName; } else { lblAccount.Text = clsVariables.computeremailaccountList.First(t => t.isCurrentlyUsed).CraigslistAccount; } flags = WinAPI.AW_ACTIVATE | WinAPI.AW_HOR_POSITIVE | WinAPI.AW_SLIDE; WinAPI.AnimateWindow(this.Handle, 1500, flags); timerPhoneVerify.Start(); aTimer = new System.Timers.Timer(); // Hook up the Elapsed event for the timer. aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 1000; aTimer.Enabled = true; }
private void AnimationForm_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, animationTime, flags); }