/// <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, 400);
            BtnBrowse.Focus();
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Performs initialization.
        /// </summary>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

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

            ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, (int)(400 * Data.VDpiScale));
            BtnBrowse.Focus();
        }