protected async override void CreateResources()
        {
            base.CreateResources();
            _circleBitmap = await CreateStaticBitmapAsync(Asset.appbar_basecircle_rest);

            _imageBitmap = await CreateStaticBitmapAsync(_image);
        }
예제 #2
0
    public static Sizer frmSobre(Window parent, bool call_fit, bool set_sizer)
    {
        BoxSizer item0 = new BoxSizer(Orientation.wxVERTICAL);

        StaticBox      item2 = new StaticBox(parent, -1, "");
        StaticBoxSizer item1 = new StaticBoxSizer(item2, Orientation.wxVERTICAL);

        StaticBitmap item3 = new StaticBitmap(parent, ID_STATICBITMAP, ListaBitmaps(6), Window.wxDefaultPosition, Window.wxDefaultSize);

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

        StaticText item4 = new StaticText(parent, ID_TEXT, "Versão: 1.0.0", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

        item1.Add(item4, 0, Alignment.wxALIGN_RIGHT | Alignment.wxALIGN_CENTER_VERTICAL | Direction.wxALL, 5);

        StaticText item5 = new StaticText(parent, ID_TEXT, "Todos os direitos reservados para: Henrique F. de Souza", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

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

        StaticText item6 = new StaticText(parent, ID_TEXT, "Sistema integrante do projeto Livrus Virtus,", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

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

        StaticText item7 = new StaticText(parent, ID_TEXT, "versão programado no wxDesigner.", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

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

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

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

        item8.Name = "btnOk";
        item0.Add(item8, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5);

        if (set_sizer)
        {
            // parent.SetAutoLayout( true );
            parent.SetSizer(item0);
            if (call_fit)
            {
                item0.Fit(parent);
                item0.SetSizeHints(parent);
            }
        }

        return(item0);
    }
예제 #3
0
    public static Sizer frmSplash(Window parent, bool call_fit, bool set_sizer)
    {
        BoxSizer item0 = new BoxSizer(Orientation.wxVERTICAL);

        StaticBitmap item1 = new StaticBitmap(parent, ID_STATICBITMAP, ListaBitmaps(6), Window.wxDefaultPosition, Window.wxDefaultSize);

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

        if (set_sizer)
        {
            // parent.SetAutoLayout( true );
            parent.SetSizer(item0);
            if (call_fit)
            {
                item0.Fit(parent);
                item0.SetSizeHints(parent);
            }
        }

        return(item0);
    }
예제 #4
0
    public static Sizer frmLogin(Window parent, bool call_fit, bool set_sizer)
    {
        BoxSizer item0 = new BoxSizer(Orientation.wxVERTICAL);

        BoxSizer item1 = new BoxSizer(Orientation.wxHORIZONTAL);

        StaticBitmap item2 = new StaticBitmap(parent, ID_STATICBITMAP, ListaBitmaps(5), Window.wxDefaultPosition, Window.wxDefaultSize);

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

        BoxSizer item3 = new BoxSizer(Orientation.wxVERTICAL);

        BoxSizer item4 = new BoxSizer(Orientation.wxVERTICAL);

        StaticText item5 = new StaticText(parent, LAB_LOGIN, "Login:"******"labLogin";
        item4.Add(item5, 0, Alignment.wxALIGN_CENTER_VERTICAL | Direction.wxRIGHT | Direction.wxBOTTOM, 5);

        TextCtrl item6 = new TextCtrl(parent, EDT_LOGIN, "", Window.wxDefaultPosition, new Size(80, -1), 0);

        item6.Name = "edtLogin";
        item4.Add(item6, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 0);

        item3.Add(item4, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5);

        BoxSizer item7 = new BoxSizer(Orientation.wxVERTICAL);

        StaticText item8 = new StaticText(parent, LAB_SENHA, "Senha:", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

        item8.Name = "labSenha";
        item7.Add(item8, 0, Alignment.wxALIGN_CENTER_VERTICAL | Direction.wxRIGHT | Direction.wxBOTTOM, 5);

        TextCtrl item9 = new TextCtrl(parent, EDT_SENHA, "", Window.wxDefaultPosition, new Size(80, -1), TextCtrl.wxTE_PASSWORD);

        item9.Name = "edtSenha";
        item7.Add(item9, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 0);

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

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

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

        BoxSizer item10 = new BoxSizer(Orientation.wxHORIZONTAL);

        Button item11 = new Button(parent, BTN_LOGIN, "Login", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

        item11.SetDefault();
        item11.Name = "btnLogin";
        item10.Add(item11, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5);

        Button item12 = new Button(parent, BTN_CANCELAR, "Cancelar", Window.wxDefaultPosition, Window.wxDefaultSize, 0);

        item12.Name = "btnCancelar";
        item10.Add(item12, 0, Alignment.wxALIGN_CENTER | Direction.wxALL, 5);

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

        if (set_sizer)
        {
            // parent.SetAutoLayout( true );
            parent.SetSizer(item0);
            if (call_fit)
            {
                item0.Fit(parent);
                item0.SetSizeHints(parent);
            }
        }

        return(item0);
    }