Example #1
0
        /* ----------------------------------------------------------------- */
        ///
        /// UpdateLayout
        ///
        /// <summary>
        /// レイアウトを更新します。
        /// </summary>
        ///
        /* ----------------------------------------------------------------- */
        public override void UpdateLayout(double ratio)
        {
            base.UpdateLayout(ratio);

            MinimumSize = new Size((int)(300 * ratio), (int)(270 * ratio));
            Size        = new Size((int)(450 * ratio), (int)(330 * ratio));

            LayoutPanel.ColumnStyles[1].Width = (int)(140 * ratio);

            LayoutPanel.RowStyles[0].Height = (int)(30 * ratio);
            LayoutPanel.RowStyles[1].Height = (int)(50 * ratio);
            LayoutPanel.RowStyles[2].Height = (int)(20 * ratio);
            LayoutPanel.RowStyles[3].Height = (int)(28 * ratio);
            LayoutPanel.RowStyles[5].Height = (int)(40 * ratio);
            LayoutPanel.RowStyles[6].Height = (int)(60 * ratio);

            TitleControl.UpdateLayout(ratio);

            ButtonsPanel.Padding = new Padding(0, (int)(10 * ratio), 0, 0);
            ApplyButton.Size     = new Size((int)(130 * ratio), (int)(35 * ratio));
            ExitButton.Size      = new Size((int)(110 * ratio), (int)(35 * ratio));

            NewTagWrapper.Height = (int)(25 * ratio);
            NewTagButton.Height  = (int)(25 * ratio);

            var margin = (NewTagWrapper.Height - Font.Height) / 2.0;

            NewTagWrapper.Padding = new Padding(4, (int)margin, 4, 0);
        }
Example #2
0
        /* ----------------------------------------------------------------- */
        ///
        /// UpdateLayout
        ///
        /// <summary>
        /// レイアウトを更新します。
        /// </summary>
        ///
        /* ----------------------------------------------------------------- */
        public override void UpdateLayout(double ratio)
        {
            base.UpdateLayout(ratio);

            MinimumSize = new Size((int)(370 * ratio), (int)(270 * ratio));
            Size        = new Size((int)(450 * ratio), (int)(450 * ratio));

            LayoutPanel.RowStyles[0].Height = (int)(30 * ratio);
            LayoutPanel.RowStyles[2].Height = (int)(22 * ratio);

            TitleControl.UpdateLayout(ratio);

            ContentsPanel.SplitterDistance = (int)(210 * ratio);

            ConditionPanel.Size = new Size((int)(400 * ratio), (int)(90 * ratio));
            ConditionPanel.ColumnStyles[0].Width = (int)(100 * ratio);
            ConditionPanel.RowStyles[0].Height   = (int)(30 * ratio);
            ConditionPanel.RowStyles[2].Height   = (int)(30 * ratio);

            ButtonsPanel.Size    = new Size((int)(400 * ratio), (int)(32 * ratio));
            SearchButton.Size    = new Size((int)(100 * ratio), (int)(30 * ratio));
            OptionalButton1.Size = new Size((int)(100 * ratio), (int)(30 * ratio));
            OptionalButton2.Size = new Size((int)(100 * ratio), (int)(30 * ratio));

            //FooterStatusStrip.Size = new Size((int)(448 * ratio), (int)(22 * ratio));
        }
Example #3
0
        /* ----------------------------------------------------------------- */
        ///
        /// UpdateLayout
        ///
        /// <summary>
        /// レイアウトを更新します。
        /// </summary>
        ///
        /* ----------------------------------------------------------------- */
        public override void UpdateLayout(double ratio)
        {
            base.UpdateLayout(ratio);

            MinimumSize = new Size((int)(350 * ratio), (int)(180 * ratio));
            Size        = new Size((int)(450 * ratio), (int)(300 * ratio));

            LayoutPanel.ColumnStyles[1].Width = (int)(130 * ratio);
            LayoutPanel.ColumnStyles[2].Width = (int)(120 * ratio);

            LayoutPanel.RowStyles[0].Height = (int)(30 * ratio);
            LayoutPanel.RowStyles[1].Height = (int)(12 * ratio);
            LayoutPanel.RowStyles[2].Height = (int)(25 * ratio);
            LayoutPanel.RowStyles[4].Height = (int)(40 * ratio);
            LayoutPanel.RowStyles[5].Height = (int)(60 * ratio);

            TitleControl.UpdateLayout(ratio);

            ButtonsPanel.Padding = new Padding(0, (int)(10 * ratio), 0, 0);
            ApplyButton.Size     = new Size((int)(130 * ratio), (int)(35 * ratio));
            ExitButton.Size      = new Size((int)(110 * ratio), (int)(35 * ratio));

            RemoveTagButton.Height = (int)(25 * ratio);
            NewTagButton.Height    = (int)(25 * ratio);
            NewTagWrapper.Height   = (int)(25 * ratio);
            var margin = Math.Max((NewTagWrapper.Height - NewTagTextBox.Height) / 2 - 1, 0);

            NewTagWrapper.Padding = new Padding(4, margin, 0, 0);
        }