public OperateOnMeshDialog(Mesh mesh) { // initialize fields _mesh = mesh; _operator = new Operator(mesh); _conduit = new DrawPreviewMeshConduit(_operator.GetMesh(), _mesh); _conduit.Enabled = true; RhinoDoc.ActiveDoc.Views.Redraw(); // Initial settings Padding = new Padding(5); Resizable = false; Result = DialogResult.Cancel; Title = "Conway"; WindowStyle = WindowStyle.Default; // initialize event handlers btn_OK.Click += ON_btn_OK_Clicked; btn_Zoom.Click += btn_Zoom_Clicked; tB_OperationInput.TextChanged += tB_OperationInput_TextChanged; cB_DrawVertexColors.CheckedChanged += cB_DrawVertexColors_CheckedChanged; // initialize layout var layout = new DynamicLayout(); layout.AddSeparateRow(lbl_AvailableOperators); layout.AddRow(new Control[] { lbl_DrawVertexColors, cB_DrawVertexColors }); layout.AddRow(new Control[] { lbl_OperationInput, tB_OperationInput }); layout.AddRow(new Control[] { btn_Zoom, btn_OK }); Content = layout; }
Control PageRange() { var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; layout.AddRow(new Label { Text = "Print Selection" }, TableLayout.AutoSized(PrintSelection())); layout.BeginHorizontal(); layout.Add(new Label { Text = "Selected Start" }); layout.AddSeparateRow().Add(SelectedStart(), new Label { Text = "to" }, SelectedEnd()); layout.EndHorizontal(); layout.Add(null); return(new GroupBox { Text = "Page Range", Content = layout }); }
public AboutDialog() { Title = "About"; Width = 300; AbortButton = new Button(); AbortButton.Text = "Close"; AbortButton.Click += (sender, e) => Close(); var dynamic1 = new DynamicLayout(); dynamic1.DefaultSpacing = new Size(6, 6); dynamic1.Padding = 6; dynamic1.BeginVertical(); var labelTitle = new Label(); labelTitle.TextAlignment = TextAlignment.Center; labelTitle.Font = new Font(labelTitle.Font.Family, labelTitle.Font.Size, FontStyle.Bold); labelTitle.Text = GetAttribute(typeof(AssemblyTitleAttribute)); dynamic1.Add(labelTitle, true); var labelVersion = new Label(); labelVersion.TextAlignment = TextAlignment.Center; var version = Utils.GetVersion("BuildDependency.Manager"); labelVersion.Text = string.Format("{0} ({1}){2}", version.Item1, version.Item2, #if DEBUG " - Debug" #else "" #endif ); dynamic1.Add(labelVersion, true); var labelDescription = new Label(); labelDescription.TextAlignment = TextAlignment.Center; labelDescription.Text = GetAttribute(typeof(AssemblyDescriptionAttribute)); dynamic1.Add(labelDescription, true); var labelCopyright = new Label(); labelCopyright.TextAlignment = TextAlignment.Center; labelCopyright.Text = GetAttribute(typeof(AssemblyCopyrightAttribute)); dynamic1.Add(labelCopyright, true); dynamic1.EndVertical(); var dynamic2 = new DynamicLayout(); dynamic2.DefaultSpacing = new Size(8, 8); dynamic2.Padding = new Padding(6); dynamic2.BeginVertical(); dynamic2.Add(dynamic1, true, true); dynamic2.AddSeparateRow(null, AbortButton); dynamic2.EndVertical(); Content = dynamic2; }
Control Default() { var control = new RadioButtonList(); LogEvents(control); var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) }; layout.Add(TableLayout.AutoSized(control)); layout.AddSeparateRow(null, AddRowsButton(control), RemoveRowsButton(control), ClearButton(control), OrientationDropDown(control), TextColorControl(control), null); layout.AddSeparateRow(null, UnselectButton(control), null); return(layout); }
public PropertyGridSection() { var grid = new PropertyGrid(); grid.SelectedObjects = new[] { new MyPropertyObject() }; var showCategoriesCheckBox = new CheckBox { Text = "ShowCategories" }; showCategoriesCheckBox.CheckedBinding.Bind(grid, c => c.ShowCategories); var showDescriptionCheckBox = new CheckBox { Text = "ShowDescription" }; showDescriptionCheckBox.CheckedBinding.Bind(grid, c => c.ShowDescription); var layout = new DynamicLayout(); layout.DefaultSpacing = new Size(4, 4); layout.AddSeparateRow(null, showCategoriesCheckBox, showDescriptionCheckBox, null); layout.Add(grid, yscale: true); Content = layout; }
protected TableDataDialog(IEnumerable <T> data) { _data = data.ToArray(); // set up event handlers btn_CopyToClipboard.Click += On_btn_CopyToClipboard_Click; btn_SaveAsCsv.Click += On_btn_SaveAsCsv_Click; btn_Close.Click += On_btn_Close_Click; // set up columns of counts grid SetupDataColumns(); gV_Data.DataStore = _data.Cast <object>(); gV_Data.Height = 400; // set up layout var layout = new DynamicLayout(); layout.Padding = 10; layout.Spacing = new Size(5, 5); layout.Add(gV_Data); layout.AddSeparateRow(new Control[] { btn_CopyToClipboard, btn_SaveAsCsv, btn_Close }); layout.Add(null); Content = layout; }
public GetStringDialog(string title) { // initialize general properties Padding = new Padding(5); Resizable = false; Result = DialogResult.Cancel; Title = title; Location = new Point(Mouse.Position); WindowStyle = WindowStyle.Default; // initialize event handlers btn_OK.Click += On_btn_OK_Click; btn_Cancel.Click += On_btn_Cancel_Click; // initialize layout var layout = new DynamicLayout(); layout.Add(tB_StringResult); layout.AddSeparateRow(new[] { btn_OK, btn_Cancel }); layout.Add(null); // Set content, set up Enter KeyDown Content = layout; Content.KeyDown += On_Content_KeyDown; }
public ParametersSelectorForm() { // Dialog box initialization Title = "Select objects by parameter"; Resizable = false; Maximizable = false; Width = 350; Topmost = true; // Buttons handlers binding Select_button.Click += OnSelectButtonClick; Reset_button.Click += OnResetButtonClick; // Table layout to add all the controls DynamicLayout layout = new DynamicLayout { Spacing = new Size(15, 15), Padding = new Padding(10) }; layout.BeginVertical(); layout.AddRow(Param_name_label); layout.AddRow(Param_name_textbox); layout.EndVertical(); layout.BeginVertical(); layout.AddRow(Param_value_label); layout.AddRow(Comparison_value, Param_value_textbox); layout.EndVertical(); layout.BeginVertical(); layout.AddRow(Add_to_selection_checkbox); layout.EndVertical(); layout.AddSeparateRow(null, Select_button, null, Reset_button, null); Content = layout; }
public Edit() { // initialize eventhandlers btn_Update.Click += Update_Clicked; cB_RadiusActive.CheckedChanged += RadiusActive_CheckedChanged; cB_VolumeActive.CheckedChanged += VolumeActive_CheckedChanged; // initialize controls InitializeControls(); // set up layout var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; cB_RadiusActive.Checked = true; cB_VolumeActive.Checked = false; layout.AddRow(lbl_Radius, tB_Radius, cB_RadiusActive); layout.AddRow(lbl_Volume, tB_Volume, cB_VolumeActive); layout.AddSeparateRow(btn_Update, null); layout.Add(null); Content = layout; }
public LabelSection() { var layout = new DynamicLayout(); layout.Add(NormalLabel()); layout.Add(FontLabel()); layout.Add(NoWrapLabel()); layout.AddSeparateRow(null, UnderlineLabel(), HotkeyLabel(), HotkeyUnderlineLabel(), null); layout.AddSeparateRow(null, ColorLabel(), BackgroundColorLabel(), null); layout.Add(CenterLabel()); layout.Add(RightLabel()); layout.Add(MiddleLabel(), yscale: true); layout.Add(BottomLabel(), yscale: true); Content = layout; }
Control Default() { var control = new DropDown(); LogEvents(control); var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) }; layout.Add(TableLayout.AutoSized(control)); layout.AddSeparateRow(AddRowsButton(control), AddWithImagesCheckBox(), RemoveRowsButton(control), ClearButton(control), null); layout.AddSeparateRow(EnabledCheckBox(control), SetSelected(control), ClearSelected(control), null); return(layout); }
public JabbRAuthDialog(string serverAddress, string appName) { this.ServerAddress = serverAddress; this.AppName = appName; this.DisplayMode = DialogDisplayMode.Attached; this.ClientSize = defaultSize; this.Resizable = true; this.Title = "JabbR Login"; var baseDir = Path.Combine(EtoEnvironment.GetFolderPath(EtoSpecialFolder.ApplicationResources), "Styles", "default"); webserver = new HttpServer(baseDir); LocalhostTokenUrl = new Uri(webserver.Url, "Authorize"); webserver.StaticContent.Add("/", AuthHtml(true)); webserver.StaticContent.Add("/Authorize", GetUserIDHtml()); webserver.ReceivedRequest += HandleReceivedRequest; web = new WebView(); web.DocumentLoaded += HandleDocumentLoaded; web.Url = webserver.Url; var layout = new DynamicLayout(); layout.Add(web, yscale: true); layout.AddSeparateRow(Padding.Empty).Add(null, this.CancelButton()); Content = layout; }
public ScreenSection() { var layout = new DynamicLayout(); screens = Screen.Screens().ToArray(); layout.AddSeparateRow(null, new Label { Text = string.Format("Display Bounds: {0}", displayBounds) }, null); layout.BeginVertical(Padding.Empty); var num = 0; foreach (var screen in screens) { layout.AddRow(null, new Label { Text = string.Format("Screen {0}", num++) }, new Label { Text = string.Format("BitsPerPixel: {0}, IsPrimary: {1}", screen.BitsPerPixel, screen.IsPrimary) }); layout.AddRow(null, new Label { Text = "Bounds:", HorizontalAlign = HorizontalAlign.Right }, new Label { Text = screen.Bounds.ToString() }, null); layout.AddRow(null, new Label { Text = "Working Area:", HorizontalAlign = HorizontalAlign.Right }, new Label { Text = screen.WorkingArea.ToString() }, null); } layout.EndVertical(); layout.Add(ScreenLayout()); Content = layout; }
Control Default() { var control = new ComboBox(); LogEvents(control); var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) }; layout.Add(TableLayout.AutoSized(control)); layout.AddSeparateRow(AddRowsButton(control), RemoveRowsButton(control), ClearButton(control), SetSelected(control), ClearSelected(control), null); layout.AddSeparateRow(GetEnabled(control), GetReadOnly(control), AutoComplete(control), ShowComboText(control), SetComboText(control), null); return(layout); }
private void InitializeComponent() { this.formsPlot1 = new ScottPlot.Eto.PlotView(); this.cbPrimary = new CheckBox(); this.cbSecondary = new CheckBox(); this.cbTertiary = new CheckBox(); this.SuspendLayout(); var layout = new DynamicLayout() { Padding = 5 }; layout.AddSeparateRow(cbPrimary, cbSecondary, cbTertiary); layout.AddSeparateRow(formsPlot1); this.Content = layout; // // formsPlot1 // this.formsPlot1.BackgroundColor = Colors.Transparent; // // cbPrimary // this.cbPrimary.Checked = true; this.cbPrimary.Font = Fonts.Sans(12, FontStyle.Bold); this.cbPrimary.TextColor = Colors.Magenta; this.cbPrimary.Text = "Primary"; // // cbSecondary // this.cbSecondary.Font = Fonts.Sans(12, FontStyle.Bold); this.cbSecondary.TextColor = Colors.Green; this.cbSecondary.Text = "Secondary"; // // cbTertiary // this.cbTertiary.Font = Fonts.Sans(12, FontStyle.Bold); this.cbTertiary.TextColor = Colors.Navy; this.cbTertiary.Text = "Tertiary"; // // MultiAxis // this.ClientSize = new Size(618, 381); this.Title = "MultiAxis"; this.ResumeLayout(); }
void Init() { // panelSettings _panelBasicSetting = new PanelBasicSetting(); _panelUserAgentSetting = new PanelUserAgentSetting(); _panelHttpHeaderSetting = new PanelHttpHeaderSetting(); _panelPolicySetting = new PanelPolicySetting(); _panelProxySetting = new PanelProxySetting(); var tabControl = new TabControl(); tabControl.Pages.Add(new TabPage { Text = AltStrRes.Basic, Content = _panelBasicSetting }); tabControl.Pages.Add(new TabPage { Text = AltStrRes.UserAgent, Content = _panelUserAgentSetting }); tabControl.Pages.Add(new TabPage { Text = AltStrRes.HttpHeader, Content = _panelHttpHeaderSetting }); tabControl.Pages.Add(new TabPage { Text = AltStrRes.Policy, Content = _panelPolicySetting }); tabControl.Pages.Add(new TabPage { Text = AltStrRes.Proxy, Content = _panelProxySetting }); // buttons _buttonSaveSetting = new Button() { Text = AltStrRes.SaveAndExit }; _buttonSaveSetting.Click += delegate { SaveAllSetting(); Close(); }; _buttonCancel = new Button() { Text = AltStrRes.Cancel }; _buttonCancel.Click += delegate { Close(); }; var layout = new DynamicLayout { Padding = new Padding(5, 5), Spacing = new Size(5, 5) }; layout.Add(tabControl, yscale: true); layout.AddSeparateRow(null, _buttonSaveSetting, _buttonCancel); Content = layout; ClientSize = new Size(400, 400); Icon = Icons.AltmanIcon; Title = AltStrRes.Setting; }
public FontEditor(CharacterHandler handler) { var layout = new DynamicLayout(); layout.Add(null, yscale: true); layout.AddSeparateRow(null, CancelButton(), OkButton()); }
public WindowsSection() { var layout = new DynamicLayout(); layout.AddSeparateRow(null, Resizable(), Minimizable(), Maximizable(), ShowInTaskBar(), TopMost(), null); layout.AddSeparateRow(null, new Label { Text = "Window Style" }, WindowStyle(), null); layout.AddSeparateRow(null, new Label { Text = "Window State" }, WindowState(), null); layout.AddSeparateRow(null, CreateChildWindowButton(), null); layout.AddSeparateRow(null, BringToFrontButton(), null); layout.Add(null); Content = layout; }
public PenSection() { PenThickness = 4; var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; layout.AddSeparateRow(null, PenJoinControl(), PenCapControl(), DashStyleControl(), null); if (Platform.Supports <NumericStepper>()) { layout.AddSeparateRow(null, PenThicknessControl(), null); } layout.AddCentered(GetDrawable()); Content = layout; }
void Init() { _textAreaInput = new TextArea(); _textAreaInput.Font = new Font(FontFamilies.Monospace, 10); _dropDownServices = new DropDown { Width = 200 }; _dropDownServices.SelectedIndexChanged += DropDownServicesSelectedIndexChanged; _radioButtonEncode = new RadioButton { Text = "Encode" }; _radioButtonEncode.CheckedChanged += _radioButtonEncode_CheckedChanged; _radioButtonDecode = new RadioButton(_radioButtonEncode) { Text = "Decode" }; _buttonRun = new Button { Text = "Run" }; _buttonRun.Click += _buttonRun_Click; _textAreaOutput = new TextArea(); _textAreaOutput.Font = new Font(FontFamilies.Monospace, 10); var inputLayout = new DynamicLayout { Padding = new Padding(5, 5, 5, 0), Spacing = new Size(5, 5) }; inputLayout.AddSeparateRow(_textAreaInput); var outputLayout = new DynamicLayout { Padding = new Padding(5, 5), Spacing = new Size(5, 5) }; outputLayout.BeginVertical(); outputLayout.BeginHorizontal(); outputLayout.AddCentered(_radioButtonEncode, horizontalCenter: false); outputLayout.AddCentered(_radioButtonDecode, horizontalCenter: false); outputLayout.Add(null); outputLayout.AddCentered(_dropDownServices, horizontalCenter: false); outputLayout.AddCentered(_buttonRun, horizontalCenter: false); outputLayout.EndHorizontal(); outputLayout.EndVertical(); outputLayout.AddSeparateRow(_textAreaOutput); var layout = new Splitter { Panel1 = inputLayout, Panel2 = outputLayout, Orientation = SplitterOrientation.Vertical, Position = 130 }; Content = layout; }
public DialogSection() { var layout = new DynamicLayout { Spacing = new Size(20, 20), DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; layout.AddSeparateRow(null, UseAsyncCheckBox(), AddButtonsCheckBox(), SetOwnerCheckBox(), null); layout.AddSeparateRow(null, ResizableCheckBox(), MinimizableCheckBox(), MaximizableCheckBox(), null); layout.AddSeparateRow(null, "DisplayMode", DisplayModeDropDown(), "WindowState", WindowStateDropDown(), null); layout.BeginVertical(); layout.AddRow(null, SimpleDialogButton(), null); layout.AddRow(null, KitchenSink(), null); layout.EndVertical(); layout.Add(null); Content = layout; }
public LabelSection() { var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; layout.Add(NormalLabel()); layout.Add(FontLabel()); layout.Add(WrapLabel()); layout.AddSeparateRow(null, UnderlineLabel(), HotkeyLabel(), HotkeyUnderlineLabel(), null); layout.AddSeparateRow(null, ColorLabel(), BackgroundColorLabel(), null); layout.Add(CenterLabel()); layout.Add(RightLabel()); layout.Add(MiddleLabel(), yscale: true); layout.Add(BottomLabel(), yscale: true); Content = layout; }
public MousePositionSection() { var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) }; layout.Add(null); layout.AddSeparateRow(null, "Mouse Position (in screen co-ordinates)", MousePositionLabel(), null); layout.AddSeparateRow(null, "PointFromScreen", PointFromScreen(), null); layout.AddSeparateRow(null, "PointToScreen", PointToScreen(), null); layout.AddSeparateRow(null, "Mouse.Buttons", Buttons(), null); layout.AddSeparateRow(null, "Keyboard.ModifierKeys", Modifiers(), null); layout.Add(null); SetLabels(); Content = layout; }
public TreeViewSection() { var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; layout.BeginHorizontal(); layout.Add(new Label()); layout.BeginVertical(); layout.BeginHorizontal(); layout.Add(null); layout.Add(allowExpanding = new CheckBox { Text = "Allow Expanding", Checked = true }); layout.Add(allowCollapsing = new CheckBox { Text = "Allow Collapsing", Checked = true }); layout.Add(RefreshButton()); layout.Add(null); layout.EndHorizontal(); layout.EndVertical(); layout.EndHorizontal(); treeView = ImagesAndMenu(); layout.AddRow(new Label { Text = "Simple" }, Default()); layout.BeginHorizontal(); layout.Add(new Panel()); layout.BeginVertical(); layout.AddSeparateRow(InsertButton(), AddChildButton(), RemoveButton(), ExpandButton(), CollapseButton(), null); layout.AddSeparateRow(LabelEditCheck(), EnabledCheck(), null); layout.EndVertical(); layout.EndHorizontal(); layout.AddRow(new Label { Text = "With Images\n&& Context Menu" }, treeView); layout.AddRow(new Panel(), HoverNodeLabel()); layout.Add(null, false, true); Content = layout; }
private void InitializeComponent() { this.label1 = new Label(); this.formsPlot1 = new ScottPlot.Eto.PlotView(); this.timerUpdateData = new UITimer(); this.timerRender = new UITimer(); this.runCheckbox = new CheckBox(); this.rollCheckbox = new CheckBox(); this.SuspendLayout(); var layout = new DynamicLayout() { Padding = 5 }; layout.AddSeparateRow(label1, null, rollCheckbox, runCheckbox); layout.AddSeparateRow(formsPlot1); this.Content = layout; // // label1 // this.label1.Text = "This example uses a fixed-size array and updates its values with time"; // // formsPlot1 // this.formsPlot1.Size = new Size(776, 407); // // runCheckbox // this.runCheckbox.Checked = true; this.runCheckbox.Text = "Run"; // // rollCheckbox // this.rollCheckbox.Text = "Roll"; // // LiveDataUpdate // this.ClientSize = new Size(800, 450); this.Title = "Live Data (fixed array)"; this.ResumeLayout(); }
public BrushSection() { var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; // defaults ScaleX = 100f; ScaleY = 100f; Center = new PointF(100, 50); GradientOrigin = new PointF(150, 80); Radius = new SizeF(100f, 50f); StartPoint = new PointF(50, 50); EndPoint = new PointF(100, 100); drawable = new Drawable { Size = new Size(450, 400) }; drawable.Paint += (sender, pe) => Draw(pe.Graphics); if ((Platform.SupportedFeatures & PlatformFeatureFlags.DrawableWithTransparentContent) == 0) { layout.AddSeparateRow(null, BrushControl(), UseBackgroundColorControl(), null); } else { layout.AddSeparateRow(null, BrushControl(), UseBackgroundColorControl(), WithContent(), null); } if (Platform.Supports <NumericUpDown>()) { matrixRow = layout.AddSeparateRow(null, new Label { Text = "Rot" }, RotationControl(), new Label { Text = "Sx" }, ScaleXControl(), new Label { Text = "Sy" }, ScaleYControl(), new Label { Text = "Ox" }, OffsetXControl(), new Label { Text = "Oy" }, OffsetYControl(), null); matrixRow.Table.Visible = false; } gradientRow = layout.AddSeparateRow(null, GradientWrapControl(), null); gradientRow.Table.Visible = false; radialRow = layout.AddSeparateRow(null, "Center:", CenterControl(), "GradientOrigin:", GradientOriginControl(), null); radiusRow = layout.AddSeparateRow(null, "Radius:", RadiusControl(), null); linearRow = layout.AddSeparateRow(null, "Start:", StartPointControl(), "End:", EndPointControl(), null); layout.AddSeparateRow(null, drawable, null); layout.Add(null); this.Content = layout; }
public CheckBoxSection() { var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; layout.Add(Default()); layout.Add(Disabled()); layout.Add(SetInitialValue()); layout.Add(ThreeState()); layout.Add(ThreeStateInitialValue()); layout.Add(new CheckBox { Text = "With Larger Font", Font = SystemFonts.Label(40) }); layout.Add(new CheckBox { Text = "With Smaller Font", Font = SystemFonts.Label(6) }); layout.AddSeparateRow(new CheckBox { Text = "Should be aligned with text" }, new Panel { Size = new Size(50, 50), BackgroundColor = Colors.Green }); layout.AddSeparateRow(new CheckBox(), new Panel { Size = new Size(50, 50), BackgroundColor = Colors.Green, Content = new Label { VerticalAlignment = VerticalAlignment.Center, Text = "Should be aligned with text" } }); layout.Add(null, false, true); Content = layout; }
public BrushSection() { var layout = new DynamicLayout(); brush = solidBrush = Brushes.LightSkyBlue; gradientBrush = new LinearGradientBrush(Colors.AliceBlue, Colors.Black, new PointF(0, 0), new PointF(100f, 100f)); //gradientBrush = new LinearGradientBrush (new RectangleF (0, 0, 50, 50), Colors.AliceBlue, Colors.Black, 10); gradientBrush.Wrap = GradientWrapMode.Repeat; textureBrush = new TextureBrush(image, 0.5f); brush = textureBrush; ScaleX = 100f; ScaleY = 100f; drawable = new Drawable { Size = new Size(300, 200) }; drawable.Paint += (sender, pe) => Draw(pe.Graphics); layout.AddSeparateRow(null, BrushControl(), UseBackgroundColorControl(), null); if (Platform.Supports <NumericUpDown>()) { matrixRow = layout.AddSeparateRow(null, new Label { Text = "Rot" }, RotationControl(), new Label { Text = "Sx" }, ScaleXControl(), new Label { Text = "Sy" }, ScaleYControl(), new Label { Text = "Ox" }, OffsetXControl(), new Label { Text = "Oy" }, OffsetYControl(), null); matrixRow.Table.Visible = false; } gradientRow = layout.AddSeparateRow(null, GradientWrapControl(), null); gradientRow.Table.Visible = false; layout.AddSeparateRow(null, drawable, null); layout.Add(null); this.Content = layout; }
private void InitializeComponent() { this.lbStyles = new ListBox(); this.groupBox1 = new GroupBox(); this.formsPlot1 = new ScottPlot.Eto.PlotView(); this.groupBox2 = new GroupBox(); this.lbPalettes = new ListBox(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); groupBox1.Content = lbStyles; groupBox2.Content = lbPalettes; var layout = new DynamicLayout() { DefaultSpacing = Size.Empty + 5, Padding = 5 }; layout.AddSeparateRow(groupBox1, groupBox2, formsPlot1); this.Content = layout; // // lbStyles // this.lbStyles.Font = Fonts.Sans(12); // // groupBox1 // this.groupBox1.Font = Fonts.Sans(12); this.groupBox1.Size = new Size(215, 423); this.groupBox1.Text = "Styles"; // // formsPlot1 // this.formsPlot1.BackgroundColor = Colors.Transparent; // // groupBox2 // this.groupBox2.Font = Fonts.Sans(12); this.groupBox2.Size = new Size(215, 423); this.groupBox2.Text = "Palettes"; // // lbPalettes // this.lbPalettes.Font = Fonts.Sans(12); // // Styles // this.ClientSize = new Size(1073, 447); this.Title = "ScottPlot Styles"; this.groupBox1.ResumeLayout(); this.groupBox2.ResumeLayout(); this.ResumeLayout(); }
public WindowsSection() { var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) }; layout.AddSeparateRow(null, Resizable(), Minimizable(), Maximizable(), CreateCancelClose(), null); layout.AddSeparateRow(null, ShowInTaskBar(), TopMost(), null); layout.AddSeparateRow(null, "Type", CreateTypeControls(), null); layout.AddSeparateRow(null, "Window Style", WindowStyle(), null); layout.AddSeparateRow(null, "Window State", WindowState(), null); layout.AddSeparateRow(null, CreateInitialLocationControls(), null); layout.AddSeparateRow(null, CreateClientSizeControls(), null); layout.AddSeparateRow(null, CreateMinimumSizeControls(), null); layout.AddSeparateRow(null, CreateChildWindowButton(), null); layout.AddSeparateRow(null, BringToFrontButton(), null); layout.Add(null); Content = layout; }