GenericWindow.SetSpinRange C# (CSharp) Method

SetSpinRange() public method

public SetSpinRange ( double min, double max ) : void
min double
max double
return void
    public void SetSpinRange(double min, double max)
    {
        spin_int.SetRange(min, max);
    }

Same methods

GenericWindow::SetSpinRange ( int min, int max ) : void

Usage Example

示例#1
0
    //show spinbutton window asking for how many people to create
    private void on_person_add_multiple_clicked(object o, EventArgs args)
    {
        genericWin = GenericWindow.Show(Catalog.GetString("Select number of persons to add") + "\n" +
                Catalog.GetString("If you want to add more than 40 persons, do this process two times.")
                , Constants.GenericWindowShow.SPININT);

        genericWin.LabelSpinInt = "";
        genericWin.SetSpinRange(1.0, 40.0);
        genericWin.Button_accept.Clicked += new EventHandler(on_person_add_multiple_prepared);
    }