예제 #1
0
 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();
        }
예제 #3
0
        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;
        }
예제 #4
0
 private void cajaAgregar_Load(object sender, EventArgs e)
 {
     bordesRedondeadosForm();
     WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE);
     _camc.generoNroPlanilla();
     _camc.accionesCajaAltaMovimientosLoad();
 }
예제 #5
0
 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);
        }
예제 #7
0
        ///----------------------------------------------------------------------------------------------------------------------------------------------------
        //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();
        }
예제 #8
0
        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();
            }
        }
예제 #11
0
        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);
        }
예제 #12
0
        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);
        }
예제 #13
0
        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;
        }
예제 #14
0
        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("该用户不存在!", "系统提示");
            }
        }
예제 #15
0
 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);
     }
 }
예제 #16
0
 private void CargoClientesFactura_Load(object sender, EventArgs e)
 {
     WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE);
     _vtc_ctr.traigoClientes();
 }
예제 #17
0
 private void vistaReimprimoFacturas_Load(object sender, EventArgs e)
 {
     WinAPI.AnimateWindow(this.Handle, 500, WinAPI.VER_POSITIVE);
     bordesRedondeadosForm();
 }
예제 #18
0
 private void cargoProductosFactura_Load(object sender, EventArgs e)
 {
     WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE);
     _pf_ctr.traigoProductos();
 }
예제 #19
0
        private void AltaClientes_Load(object sender, EventArgs e)
        {
            WinAPI.AnimateWindow(this.Handle, 300, WinAPI.VER_POSITIVE);

            dtpFechaNacimiento.Value = DateTime.Today;
        }
예제 #20
0
        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));
        }
예제 #21
0
 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);
 }
예제 #23
0
 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();
 }
예제 #24
0
 private void PanelParent_ControlAdded(object sender, ControlEventArgs e)
 {
     WinAPI.AnimateWindow(this.Handle, 2000, WinAPI.HOR_Positive);
 }
예제 #25
0
 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();
 }
예제 #28
0
 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;
 }
예제 #30
0
        //------------------------------------------------------------------------------------------------------------------------------

        private void AltaUsuarios_Load(object sender, EventArgs e)
        {
            WinAPI.AnimateWindow(this.Handle, 200, WinAPI.CENTER);
        }