public static Sizer NotebookFunc(Window parent, bool call_fit, bool set_sizer)
    {
        BoxSizer item0 = new BoxSizer(Orientation.wxVERTICAL);

        Notebook      item2 = new Notebook(parent, ID_NOTEBOOK, Window.wxDefaultPosition, new Size(200, 160), 0);
        NotebookSizer item1 = new NotebookSizer(item2);

        Panel item3 = new Panel(item2, -1);

        PageOneFunc(item3, false);
        item2.AddPage(item3, "Page 1");

        Panel item4 = new Panel(item2, -1);

        PageTwoFunc(item4, false);
        item2.AddPage(item4, "Page 2");

        Panel item5 = new Panel(item2, -1);

        item2.AddPage(item5, "Page 3");

        item0.Add(item1, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5);

        StaticLine item6 = new StaticLine(parent, ID_LINE, Window.wxDefaultPosition, new Size(20, -1), StaticLine.wxLI_HORIZONTAL);

        item0.Add(item6, 0, Stretch.wxGROW | Alignment.wxALIGN_CENTER_VERTICAL | Direction.wxALL, 5);

        BoxSizer item7 = new BoxSizer(Orientation.wxHORIZONTAL);

        Button item8 = new Button(parent, Window.wxID_OK, "OK", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

        item8.SetDefault();
        item7.Add(item8, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5);

        Button item9 = new Button(parent, Window.wxID_CANCEL, "Cancel", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

        item7.Add(item9, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5);

        item0.Add(item7, 0, Alignment.wxALIGN_CENTER | Direction.wxLEFT | Direction.wxRIGHT | Direction.wxBOTTOM, 5);

        if (set_sizer)
        {
            parent.SetSizer(item0);
            if (call_fit)
            {
                item0.SetSizeHints(parent);
            }
        }

        return(item0);
    }
    public static Sizer NotebookFunc( Window parent, bool call_fit, bool set_sizer )
    {
        BoxSizer item0 = new BoxSizer( Orientation.wxVERTICAL );

        Notebook item2 = new Notebook( parent, ID_NOTEBOOK, Window.wxDefaultPosition, new Size(200,160), 0 );
        NotebookSizer item1 = new NotebookSizer( item2 );

        Panel item3 = new Panel( item2, -1 );
        PageOneFunc( item3, false );
        item2.AddPage( item3, "Page 1" );

        Panel item4 = new Panel( item2, -1 );
        PageTwoFunc( item4, false );
        item2.AddPage( item4, "Page 2" );

        Panel item5 = new Panel( item2, -1 );
        item2.AddPage( item5, "Page 3" );

        item0.Add( item1, 0, Alignment.wxALIGN_CENTER|Direction.wxALL, 5 );

        StaticLine item6 = new StaticLine( parent, ID_LINE, Window.wxDefaultPosition, new Size(20,-1), StaticLine.wxLI_HORIZONTAL );
        item0.Add( item6, 0, Stretch.wxGROW|Alignment.wxALIGN_CENTER_VERTICAL|Direction.wxALL, 5 );

        BoxSizer item7 = new BoxSizer( Orientation.wxHORIZONTAL );

        Button item8 = new Button( parent, Window.wxID_OK, "OK", Window.wxDefaultPosition, Window.wxDefaultSize, 0 );
        item8.SetDefault();
        item7.Add( item8, 0, Alignment.wxALIGN_CENTER|Direction.wxALL, 5 );

        Button item9 = new Button( parent, Window.wxID_CANCEL, "Cancel", Window.wxDefaultPosition, Window.wxDefaultSize, 0 );
        item7.Add( item9, 0, Alignment.wxALIGN_CENTER|Direction.wxALL, 5 );

        item0.Add( item7, 0, Alignment.wxALIGN_CENTER|Direction.wxLEFT|Direction.wxRIGHT|Direction.wxBOTTOM, 5 );

        if (set_sizer)
        {
            parent.SetSizer( item0 );
            if (call_fit)
                item0.SetSizeHints( parent );
        }

        return item0;
    }