GenericWindow.showWidget C# (CSharp) Method

showWidget() public method

public showWidget ( Constants, stuff ) : void
stuff Constants,
return void
    void showWidget(Constants.GenericWindowShow stuff)
    {
        if(stuff == Constants.GenericWindowShow.ENTRY)
            entry.Show();
        else if(stuff == Constants.GenericWindowShow.ENTRY2)
            hbox_entry2.Show();
        else if(stuff == Constants.GenericWindowShow.ENTRY3)
            hbox_entry3.Show();
        else if(stuff == Constants.GenericWindowShow.SPININT)
            hbox_spin_int.Show();
        else if(stuff == Constants.GenericWindowShow.SPINDOUBLE)
            spin_double.Show();
        else if(stuff == Constants.GenericWindowShow.HBOXSPINDOUBLE2)
            hbox_spin_double2.Show();
        else if(stuff == Constants.GenericWindowShow.HEIGHTMETRIC)
            hbox_height_metric.Show();
        else if(stuff == Constants.GenericWindowShow.SPININT2)
            hbox_spin_int2.Show();
        else if(stuff == Constants.GenericWindowShow.SPININT3)
            hbox_spin_int3.Show();
        else if(stuff == Constants.GenericWindowShow.COMBO) {
            //do later, we need to create them first
            /*
            hbox_combo.Show();
            combo.Show();
            */
        }
        else if(stuff == Constants.GenericWindowShow.BUTTONMIDDLE)
            hbuttonbox_middle.Show();
        else if(stuff == Constants.GenericWindowShow.TEXTVIEW)
            scrolled_window_textview.Show();
        else //if(stuff == Constants.GenericWindowShow.TREEVIEW)
            scrolled_window_treeview.Show();
    }

Usage Example

示例#1
0
    //for only one widget
    static public GenericWindow Show(string textHeader, Constants.GenericWindowShow stuff)
    {
        if (GenericWindowBox == null)
        {
            GenericWindowBox = new GenericWindow(textHeader);
        }

        GenericWindowBox.Type = Types.UNDEFINED;

        GenericWindowBox.showWidget(stuff);
        GenericWindowBox.generic_window.Show();

        return(GenericWindowBox);
    }
All Usage Examples Of GenericWindow::showWidget