Esempio n. 1
0
        /// <summary>
        ///     Perform initializing
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            CbxSameDirAction.SelectedIndexChanged += ParamChanged;
            CbxOppDirAction.SelectedIndexChanged  += ParamChanged;
            RbConstantUnits.CheckedChanged        += ParamChanged;
            RbVariableUnits.CheckedChanged        += ParamChanged;
            NudMaxOpenLots.ValueChanged           += ParamChanged;
            NudEntryLots.ValueChanged             += ParamChanged;
            NudAddingLots.ValueChanged            += ParamChanged;
            NudReducingLots.ValueChanged          += ParamChanged;
            ChbPermaSL.CheckedChanged             += ParamChanged;
            CbxPermaSLType.SelectedIndexChanged   += ParamChanged;
            NudPermaSL.ValueChanged              += ParamChanged;
            ChbPermaTP.CheckedChanged            += ParamChanged;
            CbxPermaTPType.SelectedIndexChanged  += ParamChanged;
            NudPermaTP.ValueChanged              += ParamChanged;
            ChbBreakEven.CheckedChanged          += ParamChanged;
            NudBreakEven.ValueChanged            += ParamChanged;
            CbxUseMartingale.CheckedChanged      += ParamChanged;
            NudMartingaleMultiplier.ValueChanged += ParamChanged;

            var buttonWidth = (int)(Data.HorizontalDlu * 60);
            var btnHrzSpace = (int)(Data.HorizontalDlu * 3);

            ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, 504);

            BtnAccept.Focus();
        }
Esempio n. 2
0
 private void txtContrasena_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BtnAccept.Focus();
     }
 }
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            SetFormSize();
            SetParams();
            BtnAccept.Focus();
        }
Esempio n. 4
0
        /// <summary>
        /// Performs initialization.
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            ClientSize = new Size(350, 208);

            BtnAccept.Focus();
        }
Esempio n. 5
0
        /// <summary>
        /// Performs initialization.
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Width  = 450;
            Height = 130;

            BtnAccept.Focus();
        }
Esempio n. 6
0
        /// <summary>
        /// Performs initialization.
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var buttonWidth = (int)(Data.HorizontalDlu * 60);
            var btnHrzSpace = (int)(Data.HorizontalDlu * 3);

            ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, 245);

            BtnAccept.Focus();
        }
        /// <summary>
        ///     Performs initialization.
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var width  = (int)(350 * Data.HDpiScale);
            var height = (int)(208 * Data.VDpiScale);

            ClientSize = new Size(width, height);

            BtnAccept.Focus();
        }
        /// <summary>
        ///     Performs initialization.
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Width = 450;

            var height = (int)(130 * Data.VDpiScale);

            Height = height;

            BtnAccept.Focus();
        }
        public PagoFrm()
        {
            InitializeComponent();

            txtHorasTrabajadas.KeyDown += new KeyEventHandler(Validaciones.TextBox_KeyDown);
            txtHorasExtras.KeyDown     += new KeyEventHandler(Validaciones.TextBox_KeyDown);
            txtHorasTrabajadas.KeyDown += new KeyEventHandler(
                (s, t) =>
            {
                if (t.Key == Key.Enter)
                {
                    BtnAccept.Focus();
                }
            }
                );
        }
        /// <summary>
        /// Performs initialization.
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var buttonWidth = (int)(Data.HorizontalDLU * 60);
            var btnHrzSpace = (int)(Data.HorizontalDLU * 3);

            ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, 257);

            CbxAccountCurrency.SelectedIndexChanged += ParamChanged;
            NUDInitialAccount.ValueChanged          += ParamChanged;
            CbxLeverage.SelectedIndexChanged        += ParamChanged;
            NUDExchangeRate.ValueChanged            += ParamChanged;

            BtnAccept.Focus();
        }