private void AnimateTimer_Tick(object sender, EventArgs e) { if (!DatabaseConfigsManager.Animation) { this.Opacity = 1; if (FormEvent == eClose || FormEvent == eHide) { AnimateTimer.Enabled = false; if (FormEvent == eClose) { LightStartForm.CloseForm(this); } if (FormEvent == eHide) { LightStartForm.HideForm(this); } return; } if (FormEvent == eShow) { LightNewsContainer.CreateNews(); LightNewsContainer.Focus(); AnimateTimer.Enabled = false; SplashForm.CloseS = true; return; } } if (FormEvent == eClose || FormEvent == eHide) { if (Convert.ToDecimal(this.Opacity) != Convert.ToDecimal(0.00)) { this.Opacity = Convert.ToDouble(Convert.ToDecimal(this.Opacity) - Convert.ToDecimal(0.05)); } else { AnimateTimer.Enabled = false; if (FormEvent == eClose) { LightStartForm.CloseForm(this); } if (FormEvent == eHide) { LightStartForm.HideForm(this); } } return; } if (FormEvent == eShow) { if (this.Opacity != 1) { this.Opacity += 0.05; } else { LightNewsContainer.CreateNews(); LightNewsContainer.Focus(); AnimateTimer.Enabled = false; SplashForm.CloseS = true; } return; } }
private void AnimateTimer_Tick(object sender, EventArgs e) { if (!DatabaseConfigsManager.Animation) { this.Opacity = 1; if (FormEvent == eClose || FormEvent == eHide) { AnimateTimer.Enabled = false; if (FormEvent == eClose) { LightStartForm.CloseForm(this); } if (FormEvent == eHide) { LightStartForm.HideForm(this); } CheckTray.AddEvent(false, -1, -1, -1, -1, string.Empty, string.Empty, "Закрыл форму формирования поддона"); CheckTray.SaveEvents(); return; } if (FormEvent == eShow) { AnimateTimer.Enabled = false; SplashForm.CloseS = true; return; } } if (FormEvent == eClose || FormEvent == eHide) { if (Convert.ToDecimal(this.Opacity) != Convert.ToDecimal(0.00)) { this.Opacity = Convert.ToDouble(Convert.ToDecimal(this.Opacity) - Convert.ToDecimal(0.05)); } else { AnimateTimer.Enabled = false; if (FormEvent == eClose) { LightStartForm.CloseForm(this); } if (FormEvent == eHide) { LightStartForm.HideForm(this); } CheckTray.AddEvent(false, -1, -1, -1, -1, string.Empty, string.Empty, "Закрыл форму формирования поддона"); CheckTray.SaveEvents(); } return; } if (FormEvent == eShow || FormEvent == eShow) { if (this.Opacity != 1) { this.Opacity += 0.05; } else { AnimateTimer.Enabled = false; SplashForm.CloseS = true; } return; } }
private void AnimateTimer_Tick(object sender, EventArgs e) { if (!DatabaseConfigsManager.Animation) { this.Opacity = 1; if (FormEvent == eClose || FormEvent == eHide) { AnimateTimer.Enabled = false; if (FormEvent == eClose) { LightStartForm.CloseForm(this); } if (FormEvent == eHide) { LightStartForm.HideForm(this); } ScanEvents.AddEvent(EventsDataTable, "Закрыл форму сканирования на склад", 0, CheckLabel.UserID); return; } if (FormEvent == eShow) { AnimateTimer.Enabled = false; SplashForm.CloseS = true; return; } } if (FormEvent == eClose || FormEvent == eHide) { if (Convert.ToDecimal(this.Opacity) != Convert.ToDecimal(0.00)) { this.Opacity = Convert.ToDouble(Convert.ToDecimal(this.Opacity) - Convert.ToDecimal(0.05)); } else { AnimateTimer.Enabled = false; if (FormEvent == eClose) { LightStartForm.CloseForm(this); } if (FormEvent == eHide) { LightStartForm.HideForm(this); } ScanEvents.AddEvent(EventsDataTable, "Закрыл форму сканирования на склад", 0, CheckLabel.UserID); } return; } if (FormEvent == eShow || FormEvent == eShow) { if (this.Opacity != 1) { this.Opacity += 0.05; } else { AnimateTimer.Enabled = false; SplashForm.CloseS = true; } return; } }
private void AnimateTimer_Tick(object sender, EventArgs e) { if (!DatabaseConfigsManager.Animation) { this.Opacity = 1; if (FormEvent == eClose || FormEvent == eHide) { AnimateTimer.Enabled = false; if (FormEvent == eClose) { if (CallFromLightStartForm) { LightStartForm.CloseForm(this); } this.Close(); } if (FormEvent == eHide) { NeedSplash = false; if (CallFromLightStartForm) { LightStartForm.HideForm(this); } else { MainForm.Activate(); this.Hide(); } } return; } if (FormEvent == eShow) { NeedSplash = true; AnimateTimer.Enabled = false; SplashForm.CloseS = true; return; } } if (FormEvent == eClose || FormEvent == eHide) { if (Convert.ToDecimal(this.Opacity) != Convert.ToDecimal(0.00)) { this.Opacity = Convert.ToDouble(Convert.ToDecimal(this.Opacity) - Convert.ToDecimal(0.05)); } else { AnimateTimer.Enabled = false; if (FormEvent == eClose) { if (CallFromLightStartForm) { LightStartForm.CloseForm(this); } this.Close(); } if (FormEvent == eHide) { NeedSplash = false; if (CallFromLightStartForm) { LightStartForm.HideForm(this); } else { MainForm.Activate(); this.Hide(); } } } return; } if (FormEvent == eShow || FormEvent == eShow) { if (this.Opacity != 1) { this.Opacity += 0.05; } else { NeedSplash = true; AnimateTimer.Enabled = false; SplashForm.CloseS = true; } return; } }