diff options
author | nosami <jasonimison@gmail.com> | 2019-10-30 01:01:10 +0300 |
---|---|---|
committer | nosami <jasonimison@gmail.com> | 2019-10-31 14:38:39 +0300 |
commit | 84ac6bfe31355f42f2c6964049c570133909c9d7 (patch) | |
tree | e2ab1c327270f8baff4b3e31100d926ff4899bd5 /main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs | |
parent | 9139921594e3286f5536c7eededd2bd2b21214c9 (diff) |
Add BoolFieldList for options
Diffstat (limited to 'main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs index 42009ef5fe..38d27db16d 100644 --- a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs +++ b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs @@ -81,7 +81,21 @@ namespace MonoDevelop.AspNetCore.Scaffolding comboBox.SelectionChanged += (sender, args) => comboField.SelectedValue = comboBox.SelectedText; comboBox.SelectedIndex = 0; break; + case BoolFieldList boolFieldList: + label.Text = boolFieldList.DisplayName; + hbox.PackEnd (label); + for(int i = 0; i < boolFieldList.Options.Count; i++) { + var checkHbox = new HBox (); + var boolField = boolFieldList.Options [i]; + var checkbox = new CheckBox (boolField.DisplayName); + checkHbox.PackEnd (checkbox); + checkbox.Toggled += (sender, args) => boolField.Selected = checkbox.Active; + hbox.PackEnd (checkHbox); + } + vbox.PackStart (hbox); + break; } + } return vbox; } |