Ejemplo n.º 1
0
        public frmLogin(Window parent)
            : base(parent, -1, "Login do Sistema", new Point(546, 346),
                   new Size(211, 168), wxDEFAULT_DIALOG_STYLE, "")
        {
            bmpLogin = new wx.StaticBitmap(this, (int)idt.ID_FRMLOGIN_BMPLOGIN,
                                           new wx.Bitmap("xpms/login.xpm", wx.BitmapType.wxBITMAP_TYPE_XPM),
                                           new Point(8, 8), new Size(90, 90));
            labLogin = new wx.StaticText(this, (int)idt.ID_FRMLOGIN_LABLOGIN,
                                         "Login:"******"",
                                       new Point(112, 24), new Size(80, 21));
            edtLogin.MaxLength = 10;
            labSenha           = new wx.StaticText(this, (int)idt.ID_FRMLOGIN_LABSENHA,
                                                   "Senha:", new Point(112, 56), new Size(34, 13));
            edtSenha = new wx.TextCtrl(this, (int)idt.ID_FRMLOGIN_EDTSENHA, "",
                                       new Point(112, 72), new Size(80, 21), wx.TextCtrl.wxTE_PASSWORD);
            edtSenha.MaxLength = 10;
            btnLogin           = new wx.Button(this, (int)idt.ID_FRMLOGIN_BTNLOGIN, "&Login",
                                               new Point(24, 107), new Size(75, 25));
            btnCancelar = new wx.Button(this, (int)idt.ID_FRMLOGIN_BTNCANCELAR, "&Cancelar",
                                        new Point(112, 107), new Size(75, 25));
            btnLogin.SetDefault();

            bFechar = false;
            FazLayout();

            EVT_CLOSE(new EventListener(OnClose));
            EVT_BUTTON((int)idt.ID_FRMLOGIN_BTNLOGIN,
                       new EventListener(OnBtnLoginClick));
            EVT_BUTTON((int)idt.ID_FRMLOGIN_BTNCANCELAR,
                       new EventListener(OnBtnCancelarClick));
        }
Ejemplo n.º 2
0
        public frmSobre(Window parent)
            : base(parent, -1, "Sobre o Sistema", new Point(498, 310),
                   new Size(306, 240), wxDEFAULT_DIALOG_STYLE, "")
        {
            this.SetIcon(new wx.Icon("xpms/livrus.xpm"));
            this.Centre(wx.Orientation.wxBOTH);

            labBmp = new wx.StaticBitmap(this, (int)idt.ID_FRMSOBRE_LABBMP,
                                         new wx.Bitmap("xpms/livrusvirtus.xpm"),
                                         new Point(24, 20), new Size(254, 72));
            labVersao = new wx.StaticText(this, (int)idt.ID_FRMSOBRE_LABVERSAO,
                                          "Versão: 1.0.0", new Point(200, 96), new Size(63, 13));
            labDireitos = new wx.StaticText(this, (int)idt.ID_FRMSOBRE_LABDIREITOS,
                                            "Todos os diretos reservados para: Henrique F. de Souza",
                                            new Point(16, 112), new Size(266, 13));
            labSistema = new wx.StaticText(this, (int)idt.ID_FRMSOBRE_LABSISTEMA,
                                           "Sistema integrante do projeto Livrus Virtus, " +
                                           "versão programada em C# usando a wx.NET.",
                                           new Point(16, 131), new Size(264, 29), wx.Alignment.wxALIGN_CENTRE);
            btnOk = new wx.Button(this, wxID_OK, "&Ok",
                                  new Point(111, 180), new Size(75, 25));

            btnOk.SetDefault();
            FazLayout();
        }