Exemplo n.º 1
0
        private void Initialize()
        {
            var vm     = this._vm;
            var layout = new DynamicLayout();

            layout.Width = 400;

            layout.DefaultSpacing = new Size(4, 4);
            layout.DefaultPadding = new Padding(4);

            var tb = new TabControl();

            tb.Bind(_ => _.SelectedIndex, vm, _ => _.TabIndex);
            var basis = GenGeneralTab();
            var pg    = new TabPage(basis)
            {
                Text = "General"
            };

            tb.Pages.Add(pg);

            tb.SelectedPage = pg;
            layout.AddRow(tb);


            layout.Add(null);
            SchemaDataBtn = new Button {
                Text = "Data"
            };
            SchemaDataBtn.Command = vm.HBDataBtnClick;
            //layout.AddSeparateRow(data_button, null);

            this.Content = layout;
        }
Exemplo n.º 2
0
        private void Initialize()
        {
            var vm     = this._vm;
            var layout = new DynamicLayout();

            layout.Width = 400;

            layout.DefaultSpacing = new Size(4, 4);
            layout.DefaultPadding = new Padding(4);

            var tb = new TabControl();

            tb.Bind(_ => _.SelectedIndex, vm, _ => _.TabIndex);
            var general = new DynamicLayout();

            general.DefaultSpacing = new Size(4, 4);
            general.DefaultPadding = new Padding(4);

            general.AddRow(GenGeneralPanel());
            general.AddRow(GenRadiancePanel());
            general.AddRow(GenEnergyPanel());
            tb.Pages.Add(new TabPage(general)
            {
                Text = "General"
            });

            var userData = GenUserDataPanel();

            tb.Pages.Add(new TabPage(userData)
            {
                Text = "User Data"
            });
            layout.AddRow(tb);


            layout.Add(null);
            SchemaDataBtn = new Button {
                Text = "Data"
            };
            SchemaDataBtn.Command = vm.HBDataBtnClick;
            //layout.AddSeparateRow(data_button, null);

            this.Content = layout;
        }