Exemplo n.º 1
0
 private void DGVOrden_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         e.Handled = true;
         IniciarEditorExamen();
     }
     else if (e.KeyChar == (char)Keys.P)
     {
         BtnPrint.PerformClick();
     }
 }
Exemplo n.º 2
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch (keyData)
            {
            case (Keys.Control | Keys.N):
            {
                BtnAddNew.PerformClick(); break;
            }

            case (Keys.Control | Keys.E):
            {
                BtnEdit.PerformClick(); break;
            }

            case (Keys.Control | Keys.D):
            {
                BtnDelete.PerformClick(); break;
            }

            case (Keys.Control | Keys.S):
            {
                BtnSave.PerformClick(); break;
            }

            case (Keys.Control | Keys.U):
            {
                BtnUndo.PerformClick(); break;
            }

            case (Keys.Control | Keys.F):
            {
                BtnFind.PerformClick(); break;
            }

            case (Keys.Control | Keys.R):
            {
                BtnReload.PerformClick(); break;
            }

            case (Keys.Control | Keys.P):
            {
                BtnPrint.PerformClick(); break;
            }
            }
            return(base.ProcessCmdKey(ref msg, keyData));
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (Session["UserName"] == null)
                {
                    Response.Redirect("FrmLogin.aspx");
                }

                TxtBrID.Text   = Session["BRCD"].ToString();
                TxtBankCD.Text = "0000";
                TxtFDate.Text  = Session["EntryDate"].ToString();
                TxtTDate.Text  = Session["EntryDate"].ToString();
                BtnPrint.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Exemplo n.º 4
0
        void ReleaseDesignerOutlets()
        {
            if (ActivityIndicatorAlignmentSegementControl != null)
            {
                ActivityIndicatorAlignmentSegementControl.Dispose();
                ActivityIndicatorAlignmentSegementControl = null;
            }

            if (BtnDismiss != null)
            {
                BtnDismiss.Dispose();
                BtnDismiss = null;
            }

            if (BtnPrint != null)
            {
                BtnPrint.Dispose();
                BtnPrint = null;
            }

            if (BtnShow != null)
            {
                BtnShow.Dispose();
                BtnShow = null;
            }

            if (ContentView != null)
            {
                ContentView.Dispose();
                ContentView = null;
            }

            if (coverNavBarSwitch != null)
            {
                coverNavBarSwitch.Dispose();
                coverNavBarSwitch = null;
            }

            if (DismissibleWithTapSwitch != null)
            {
                DismissibleWithTapSwitch.Dispose();
                DismissibleWithTapSwitch = null;
            }

            if (ForceUserInteractionSwitch != null)
            {
                ForceUserInteractionSwitch.Dispose();
                ForceUserInteractionSwitch = null;
            }

            if (ImageAlignmentSegmentedControl != null)
            {
                ImageAlignmentSegmentedControl.Dispose();
                ImageAlignmentSegmentedControl = null;
            }

            if (ImageTintEnabledSwitch != null)
            {
                ImageTintEnabledSwitch.Dispose();
                ImageTintEnabledSwitch = null;
            }

            if (ImageTintSlider != null)
            {
                ImageTintSlider.Dispose();
                ImageTintSlider = null;
            }

            if (InAnimationTypeSegmentedControl != null)
            {
                InAnimationTypeSegmentedControl.Dispose();
                InAnimationTypeSegmentedControl = null;
            }

            if (LblDuration != null)
            {
                LblDuration.Dispose();
                LblDuration = null;
            }

            if (LblPadding != null)
            {
                LblPadding.Dispose();
                LblPadding = null;
            }

            if (NavigationBarSwitch != null)
            {
                NavigationBarSwitch.Dispose();
                NavigationBarSwitch = null;
            }

            if (OutAnimationTypeSegmentedControl != null)
            {
                OutAnimationTypeSegmentedControl.Dispose();
                OutAnimationTypeSegmentedControl = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (SegAlignment != null)
            {
                SegAlignment.Dispose();
                SegAlignment = null;
            }

            if (SegFromDirection != null)
            {
                SegFromDirection.Dispose();
                SegFromDirection = null;
            }

            if (SegSubtitleAlignment != null)
            {
                SegSubtitleAlignment.Dispose();
                SegSubtitleAlignment = null;
            }

            if (SegToDirection != null)
            {
                SegToDirection.Dispose();
                SegToDirection = null;
            }

            if (ShowActivityIndicatorSwitch != null)
            {
                ShowActivityIndicatorSwitch.Dispose();
                ShowActivityIndicatorSwitch = null;
            }

            if (ShowImageSwitch != null)
            {
                ShowImageSwitch.Dispose();
                ShowImageSwitch = null;
            }

            if (SlideOverSwitch != null)
            {
                SlideOverSwitch.Dispose();
                SlideOverSwitch = null;
            }

            if (SliderDuration != null)
            {
                SliderDuration.Dispose();
                SliderDuration = null;
            }

            if (SliderPadding != null)
            {
                SliderPadding.Dispose();
                SliderPadding = null;
            }

            if (SlideUnderSwitch != null)
            {
                SlideUnderSwitch.Dispose();
                SlideUnderSwitch = null;
            }

            if (StatusBarSwitch != null)
            {
                StatusBarSwitch.Dispose();
                StatusBarSwitch = null;
            }

            if (Toolbar != null)
            {
                Toolbar.Dispose();
                Toolbar = null;
            }

            if (TxtNotificationMessage != null)
            {
                TxtNotificationMessage.Dispose();
                TxtNotificationMessage = null;
            }

            if (TxtSubtitleMessage != null)
            {
                TxtSubtitleMessage.Dispose();
                TxtSubtitleMessage = null;
            }
        }