Exemple #1
0
        public UICheckBox AddCheckBox(string label, bool isChecked, OnCheckChanged checkChangedEvent)
        {
            label.ShouldNotBeNullOrEmpty("label");
            checkChangedEvent.ShouldNotBeNull("checkChangedEvent");

            return((UICheckBox)UiHelperBase.AddCheckbox(label, isChecked, checkChangedEvent));
        }
Exemple #2
0
        public UIButton AddButton(string label, OnButtonClicked buttonClickedEvent)
        {
            label.ShouldNotBeNullOrEmpty("label");
            buttonClickedEvent.ShouldNotBeNull("buttonClickedEvent");

            return((UIButton)UiHelperBase.AddButton(label, buttonClickedEvent));
        }
Exemple #3
0
        public UITextField AddTextField(string label,
                                        string value,
                                        OnTextChanged textChangedEvent,
                                        OnTextSubmitted textSubmittedEvent)
        {
            label.ShouldNotBeNullOrEmpty("label");

            return((UITextField)UiHelperBase.AddTextfield(label, value, textChangedEvent, textSubmittedEvent));
        }
Exemple #4
0
        public UIDropDown AddDropDown(string label,
                                      ICollection <string> options,
                                      int selectedIndex,
                                      OnDropdownSelectionChanged selectionChangedEvent)
        {
            label.ShouldNotBeNullOrEmpty("label");
            options.ShouldNotBeNullOrEmpty("options");
            selectionChangedEvent.ShouldNotBeNull("selectionChangedEvent");

            return((UIDropDown)UiHelperBase.AddDropdown(label, options.ToArray(), selectedIndex, selectionChangedEvent));
        }
Exemple #5
0
        public UISlider AddSlider(
            string label,
            float minimumValue,
            float maximumValue,
            float step,
            float value,
            OnValueChanged valueChangedEvent)
        {
            label.ShouldNotBeNullOrEmpty("label");
            minimumValue.ShouldBeLessThan(maximumValue, "minimumValue");
            step.ShouldBeLessThanOrEqualTo(maximumValue, "step");
            value.ShouldBeGreaterThanOrEqualTo(minimumValue, "value");
            value.ShouldBeLessThanOrEqualTo(maximumValue, "value");
            valueChangedEvent.ShouldNotBeNull("valueChangedEvent");

            return((UISlider)UiHelperBase.AddSlider(label, minimumValue, maximumValue, step, value, valueChangedEvent));
        }
Exemple #6
0
        public UIPanel AddSpace(int height = 10)
        {
            height.ShouldBeGreaterThanZero("height");

            return((UIPanel)UiHelperBase.AddSpace(height));
        }
Exemple #7
0
 public StronglyTypedUIHelper AddGroup(string label)
 {
     return(new StronglyTypedUIHelper(UiHelperBase.AddGroup(label)));
 }