Ejemplo n.º 1
0
 public MessengerControl(string name)
     : base(name)
 {
     _txtMessage = new TextBox("txtMessage");
     _txtMessage.OnEnter += new jQueryApi.jQueryEventHandler(btnSend_OnClick);
     _btnSend = new Button("btnSend");
     _btnSend.OnClick += new jQueryApi.jQueryEventHandler(btnSend_OnClick);
     _btnSend.Text = "Send";
     AddChild(_txtMessage);
     AddChild(_btnSend);
     OnResize += MessengerControl_OnResize;
 }
Ejemplo n.º 2
0
        public override void PreRender()
        {
            dlgLoginForm = new Dialog("dlgLoginForm");
            dlgLoginForm.Options.AutoOpen = true;
            dlgLoginForm.Options.CloseOnEscape = false;
            dlgLoginForm.Options.Draggable = false;
            dlgLoginForm.Options.Modal = true;
            dlgLoginForm.Options.Title = "Login";
            dlgLoginForm.IsCloseable = false;

            txtPassword = new TextBox("txtPassword");
            txtUsername = new TextBox("txtUsername");
            txtUsername.Placeholder = "Username";
            txtPassword.Placeholder = "Password";

            btnLogin = new Button("btnLogin");
            btnLogin.Text = "LOGIN";

            btnLogin.OnClick += btnLogin_OnClick;

            dlgLoginForm.AddChild(txtUsername);
            dlgLoginForm.AddChild(txtPassword);
            dlgLoginForm.AddChild(btnLogin);
            AddChild(dlgLoginForm);
        }