Ejemplo n.º 1
0
        public override void AddSettingControlImpl(ISettingControlBinding controlBinding)
        {
            _currentRow++;
            var tableLayout = Panel;

            var caption = controlBinding.Caption();

            if (caption != null)
            {
                var label =
                    new Label
                {
                    Text     = controlBinding.Caption(),
                    AutoSize = true
                };

                label.Anchor = AnchorStyles.Left;
                tableLayout.Controls.Add(label, 0, _currentRow);
            }

            var control = controlBinding.GetControl();

            control.Dock = DockStyle.Fill;
            tableLayout.Controls.Add(control, 1, _currentRow);
        }
Ejemplo n.º 2
0
        public override void AddSettingControlImpl(ISettingControlBinding controlBinding)
        {
            _currentRow++;
            var tableLayout = Panel;

            var caption = controlBinding.Caption();

            if (caption is not null)
            {
                var label = new Label
                {
                    Text     = controlBinding.Caption(),
                    AutoSize = true,
                    Anchor   = AnchorStyles.Left | AnchorStyles.Top,
                    Margin   = new Padding(0, DpiUtil.Scale(2), 0, 0)
                };

                tableLayout.Controls.Add(label, 0, _currentRow);
            }

            var control = controlBinding.GetControl();

            control.Dock = DockStyle.Fill;
            tableLayout.Controls.Add(control, 1, _currentRow);
        }
Ejemplo n.º 3
0
 public void AddControlBinding(ISettingControlBinding binding)
 {
     _controlBindings.Add(binding);
 }
Ejemplo n.º 4
0
 public void AddSettingControl(ISettingControlBinding aControlBinding)
 {
     AddControlBinding(aControlBinding);
     AddSettingControlImpl(aControlBinding);
 }
Ejemplo n.º 5
0
 public void AddControlBinding(ISettingControlBinding aControlBinding)
 {
     ParentLayout.AddControlBinding(aControlBinding);
 }
Ejemplo n.º 6
0
 public void AddSettingControl(ISettingControlBinding controlBinding)
 {
     GetSettingsLayout().AddSettingControl(controlBinding);
 }
Ejemplo n.º 7
0
 public abstract void AddSettingControlImpl(ISettingControlBinding controlBinding);
Ejemplo n.º 8
0
 public void AddControlBinding(ISettingControlBinding controlBinding)
 {
     controlBindings.Add(controlBinding);
 }
Ejemplo n.º 9
0
 public void AddSettingControl(ISettingControlBinding aControlBinding)
 {
     AddKeyword(aControlBinding.GetSetting().Caption);
     AddControlBinding(aControlBinding);
     AddSettingControlImpl(aControlBinding);
 }
 public void AddSettingControl(ISettingControlBinding controlBinding)
 {
     GetSettingsLayout().AddSettingControl(controlBinding);
 }
 public void AddControlBinding(ISettingControlBinding controlBinding)
 {
     controlBindings.Add(controlBinding);
 }
        public override void AddSettingControlImpl(ISettingControlBinding controlBinding)
        {
            currentRow++;
            var tableLayout = Panel;

            var caption = controlBinding.Caption();

            if (caption != null)
            {
                var label =
                    new Label
                    {
                        Text = controlBinding.Caption(),
                        AutoSize = true
                    };

                label.Anchor = AnchorStyles.Left;
                tableLayout.Controls.Add(label, 0, currentRow);
            }
            var control = controlBinding.GetControl();
            control.Dock = DockStyle.Fill;
            tableLayout.Controls.Add(control, 1, currentRow);
        }
 public abstract void AddSettingControlImpl(ISettingControlBinding controlBinding);
 public void AddSettingControl(ISettingControlBinding aControlBinding)
 {
     AddKeyword(aControlBinding.GetSetting().Caption);
     AddControlBinding(aControlBinding);
     AddSettingControlImpl(aControlBinding);
 }
 public void AddControlBinding(ISettingControlBinding aControlBinding)
 {
     ParentLayout.AddControlBinding(aControlBinding);
 }