showWidget() public method

public showWidget ( Constants, stuff ) : void
stuff Constants,
return void
コード例 #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);
    }
コード例 #2
0
    //for only one widget
    static public GenericWindow Show(string textHeader, Constants.GenericWindowShow stuff)
    {
        if (GenericWindowBox == null)
        {
            GenericWindowBox = new GenericWindow();
        }

        GenericWindowBox.hideWidgets();
        GenericWindowBox.showWidget(stuff);

        GenericWindowBox.generic_window.Resizable = false;
        GenericWindowBox.label_header.Text        = textHeader;
        GenericWindowBox.generic_window.Show();
        GenericWindowBox.HideOnAccept    = true;
        GenericWindowBox.DestroyOnAccept = false;

        return(GenericWindowBox);
    }
コード例 #3
0
    //for only one widget
    static public GenericWindow Show(string title, string textHeader, Constants.GenericWindowShow stuff)
    {
        if (GenericWindowBox == null)
        {
            GenericWindowBox = new GenericWindow(title, textHeader);
        }
        else
        {
            GenericWindowBox.setTitle(title);
            GenericWindowBox.label_header.Text = textHeader;
        }

        GenericWindowBox.Type = Types.UNDEFINED;

        GenericWindowBox.hideWidgets();

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

        return(GenericWindowBox);
    }