protected virtual void OnStartAnimat(XtraForm fm = null) { if (fm != null) { WinAPI.AnimateWindow(fm == null ? Handle : fm.Handle, 500, WinAPI.AW_HOR_POSITIVE); } }
private void cargoClienteHistorico_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); bordesRedondeadosForm(); _cchc.traigoClientes(); }
public static void Animate(Control ctl, Effect effect, int msec, int angle) { int flags = effmap[(int)effect]; if (ctl.Visible) { flags |= 0x10000; angle += 180; } else { if (ctl.TopLevelControl == ctl) { flags |= 0x20000; } else if (effect == Effect.Blend) { throw new ArgumentException(); } } flags |= dirmap[(angle % 360) / 45]; WinAPI.AnimateWindow(ctl.Handle, msec, flags); //if (!ok) throw new Exception("Animation failed"); ctl.Visible = !ctl.Visible; }
private void cajaAgregar_Load(object sender, EventArgs e) { bordesRedondeadosForm(); WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); _camc.generoNroPlanilla(); _camc.accionesCajaAltaMovimientosLoad(); }
protected virtual void OnCloseAnimat(XtraForm fm = null) { if (fm != null) { WinAPI.AnimateWindow(fm == null ? Handle : fm.Handle, 500, WinAPI.AW_CENTER | WinAPI.AW_HIDE); } }
private void cuentasCorrientesView_Load(object sender, EventArgs e) { bordesRedondeadosForm(); desahibilitoEventos(); WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); }
///---------------------------------------------------------------------------------------------------------------------------------------------------- //BOTON PARA DAR DE ALTA PRODUCTO ///---------------------------------------------------------------------------------------------------------------------------------------------------- //FUNCIONALIDADES DE FORM private void AltaProductos_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 30, 30)); _ap_ctr.obtengoID_NuevoProducto(); }
private void VistaProductos_Load(object sender, EventArgs e) { btnModificarProducto.Visible = false; btnEliminarProducto.Visible = false; WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 30, 30)); }
private void AltaCategoriaProducto_Load(object sender, EventArgs e) { _cpc.obtengoIDCategoria(); WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 30, 30)); }
private void cargoClienteCtaCte_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); bordesRedondeadosForm(); if (_ccc_ctr.traigoCliente() == false) { this.Close(); } }
public void VistaFacturas_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 50, WinAPI.CENTER); bordesRedondeadosForm(); _vef_ctr.accionesFacturasLoad(); _vef_ctr.generoNroFactura(); _vef_ctr.controloFacturaYhabilito2doTab(this); }
internal static void DoEffect(Control ctrl, EffectsKind kind = EffectsKind.FadeIn, bool useSlideIfPossible = true, int animationSpeedInMS = 250) { //Animate(ctrl, Effect.Slide, 150, 180); //return; int flags = 0; switch (kind) { case EffectsKind.SlideBottomToTop: flags = WinAPI.AW_ACTIVATE | WinAPI.AW_VER_NEGATIVE; if (useSlideIfPossible) { flags |= WinAPI.AW_SLIDE; } break; case EffectsKind.SlideTopToBottom: flags = WinAPI.AW_ACTIVATE | WinAPI.AW_VER_POSITIVE; if (useSlideIfPossible) { flags |= WinAPI.AW_SLIDE; } break; case EffectsKind.SlideLeftToRight: flags = WinAPI.AW_ACTIVATE | WinAPI.AW_HOR_POSITIVE; if (useSlideIfPossible) { flags |= WinAPI.AW_SLIDE; } break; case EffectsKind.SlideRightToLeft: flags = WinAPI.AW_ACTIVATE | WinAPI.AW_HOR_NEGATIVE; if (useSlideIfPossible) { flags |= WinAPI.AW_SLIDE; } break; case EffectsKind.Collapse: flags = WinAPI.AW_ACTIVATE | WinAPI.AW_CENTER; break; default: // EffectsKind.FadeIn flags = WinAPI.AW_ACTIVATE | WinAPI.AW_BLEND; break; } WinAPI.AnimateWindow(ctrl.Handle, animationSpeedInMS, flags); }
private void PhoneVerificationForm_Load(object sender, EventArgs e) { lblAccount.Text = GlobalVar.CurrentDealer.EmailAccountList.FirstOrDefault(t => t.IsCurrentlyUsed).CraigslistAccount; flags = WinAPI.AW_ACTIVATE | WinAPI.AW_HOR_POSITIVE | WinAPI.AW_SLIDE; WinAPI.AnimateWindow(Handle, 1500, flags); timerPhoneVerify.Start(); aTimer = new Timer(); // Hook up the Elapsed event for the timer. aTimer.Elapsed += OnTimedEvent; aTimer.Interval = 1000; aTimer.Enabled = true; }
private void lblLogin_Click(object sender, EventArgs e) { string user_account = txtUserName.Text.Trim(); string user_password = txtPassword.Text.Trim(); if (string.IsNullOrEmpty(user_account)) { MessageBox.Show("请输入用户名!", "系统提示"); txtUserName.Focus(); return; } var book_init_user = TagInfoDAL.GetBookInitUser(user_account); if (null != book_init_user) { if (book_init_user.user_password != Utility.DES3Encrypt(user_password)) { MessageBox.Show("用户密码错误!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtPassword.Focus(); return; } else { UserInfo.Instance.id = book_init_user.id; UserInfo.Instance.user_account = book_init_user.user_account; UserInfo.Instance.user_name = book_init_user.user_name; UserInfo.Instance.user_password = book_init_user.user_password; new TagInitEntry(UserInfo.Instance).Show(); WinAPI.AnimateWindow(Handle, 500, WinAPI.AW_CENTER | WinAPI.AW_HIDE); } } else { MessageBox.Show("该用户不存在!", "系统提示"); } }
private void Sound_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.Ver_positive); if (Systeminfo.Status == true) { btnOn.Visible = true; btnOff.Visible = false; Status = true; } else { btnOn.Visible = false; btnOff.Visible = true; } LoadListview(); if (Systeminfo.Volume != 0) { trackBar.Value = Systeminfo.Volume / 10; } else { Mp3Player.Volume(trackBar.Value * 10); } }
private void CargoClientesFactura_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); _vtc_ctr.traigoClientes(); }
private void vistaReimprimoFacturas_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); bordesRedondeadosForm(); }
private void cargoProductosFactura_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); _pf_ctr.traigoProductos(); }
private void AltaClientes_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); dtpFechaNacimiento.Value = DateTime.Today; }
private void ModificacionesProductos_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 30, 30)); }
private void cajaView_Load(object sender, EventArgs e) { bordesRedondeadosForm(); WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); }
private void ChooseLever_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.Ver_positive); }
private void morososView_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 360, WinAPI.VER_POSITIVE); Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 30, 30)); _ccc.traigoMorosos(); }
private void PanelParent_ControlAdded(object sender, ControlEventArgs e) { WinAPI.AnimateWindow(this.Handle, 2000, WinAPI.HOR_Positive); }
private void PreLoginForm_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 2000, WinAPI.BLEND); }
private void agregarClienteMovimiento_Load(object sender, EventArgs e) { bordesRedondeadosForm(); WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); _acmc.traigoClientesCaja(); }
private void cuentaCorrienteAbonarCuotaView_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE); bordesRedondeadosForm(); }
private void ModificarUsuarios_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 200, WinAPI.CENTER); Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 30, 30)); }
private void ModificacionClientes_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE); dtpFechaNacimiento.Text = txtFechaNacimiento.Text; }
//------------------------------------------------------------------------------------------------------------------------------ private void AltaUsuarios_Load(object sender, EventArgs e) { WinAPI.AnimateWindow(this.Handle, 200, WinAPI.CENTER); }