Ejemplo n.º 1
0
        private void InitializeControls(bool isQwerty)
        {
            btnAlarm   = new ALSAlarm();
            txtTo      = new ALSTextbox();
            txtSubject = new ALSTextbox();
            txtBody    = new ALSTextbox();
            btnCancel  = new ALSButton();
            btnSend    = new ALSButton();

            if (isQwerty)
            {
                keyboard = new LargeButtonKeyboard();
            }
            else
            {
                keyboard = new QwertyKeyboard();
            }

            txtTo.Multiline      = true;
            txtSubject.Multiline = true;

            btnCancel.Text  = "Cancel";
            btnSend.Text    = "Send";
            txtTo.Text      = "To:";
            txtSubject.Text = "Subject:";
            txtBody.Text    = "Body:";

            Controls.Add(btnAlarm);
            Controls.Add(txtTo);
            Controls.Add(txtSubject);
            Controls.Add(txtBody);
            Controls.Add(btnCancel);
            Controls.Add(btnSend);
            Controls.Add(keyboard);

            btnCancel.Click  += BtnCancel_Click;
            btnSend.Click    += BtnSend_Click;
            txtTo.Click      += TxtTo_Click;
            txtSubject.Click += TxtSubject_Click;
            txtBody.Click    += TxtBody_Click;

            txtTo.Font      = new Font(txtTo.Font.FontFamily, 20);
            txtSubject.Font = new Font(txtSubject.Font.FontFamily, 20);
            txtBody.Font    = new Font(txtBody.Font.FontFamily, 20);

            keyboard.HideTextBox();
            txtBody.Multiline = true;
        }
Ejemplo n.º 2
0
        private void InitializeControls(bool isQwerty)
        {
            btnAlarm    = new ALSAlarm();
            btnLogout   = new ALSButton();
            btnCancel   = new ALSButton();
            btnLogin    = new ALSButton();
            txtLoginBox = new ALSTextbox();
            txtPassword = new ALSTextbox();
            if (isQwerty)
            {
                keyboard = new LargeButtonKeyboard();
            }
            else
            {
                keyboard = new QwertyKeyboard();
            }

            txtLoginBox.Multiline = true;
            txtPassword.Multiline = true;


            btnLogout.Text = "Log\nOut";
            btnCancel.Text = "Cancel";
            btnLogin.Text  = "Log\nIn";

            Controls.Add(btnAlarm);
            Controls.Add(btnLogout);
            Controls.Add(btnCancel);
            Controls.Add(btnLogin);
            Controls.Add(txtLoginBox);
            Controls.Add(txtPassword);
            Controls.Add(keyboard);

            btnLogout.Click += BtnLogout_Click;
            btnCancel.Click += BtnCancel_Click;
            btnLogin.Click  += BtnLogin_Click;

            txtLoginBox.Font = new Font(txtLoginBox.Font.FontFamily, 20);
            txtPassword.Font = new Font(txtPassword.Font.FontFamily, 20);

            keyboard.HideTextBox();
            txtLoginBox.Focus();
        }
Ejemplo n.º 3
0
 public static void setDecay(bool isDecay)
 {
     ALSButton.isDecay = isDecay;
     ALSTextbox.setDecay(isDecay);
 }
Ejemplo n.º 4
0
        private void InitializeControls(bool isQwerty)
        {
            btnAlarm = new ALSAlarm();
            btnLogout = new ALSButton();
            btnCancel = new ALSButton();
            btnLogin = new ALSButton();
            txtLoginBox = new ALSTextbox();
            txtPassword = new ALSTextbox();
            if (isQwerty)
                keyboard = new LargeButtonKeyboard();
            else
                keyboard = new QwertyKeyboard();

            txtLoginBox.Multiline = true;
            txtPassword.Multiline = true;

            btnLogout.Text = "Log\nOut";
            btnCancel.Text = "Cancel";
            btnLogin.Text = "Log\nIn";

            Controls.Add(btnAlarm);
            Controls.Add(btnLogout);
            Controls.Add(btnCancel);
            Controls.Add(btnLogin);
            Controls.Add(txtLoginBox);
            Controls.Add(txtPassword);
            Controls.Add(keyboard);

            btnLogout.Click += BtnLogout_Click;
            btnCancel.Click += BtnCancel_Click;
            btnLogin.Click += BtnLogin_Click;

            txtLoginBox.Font = new Font(txtLoginBox.Font.FontFamily, 20);
            txtPassword.Font = new Font(txtPassword.Font.FontFamily, 20);

            keyboard.HideTextBox();
            txtLoginBox.Focus();
        }
Ejemplo n.º 5
0
        private void InitializeControls(bool isQwerty)
        {
            btnAlarm = new ALSAlarm();
            txtTo = new ALSTextbox();
            txtSubject = new ALSTextbox();
            txtBody = new ALSTextbox();
            btnCancel = new ALSButton();
            btnSend = new ALSButton();

            if (isQwerty)
                keyboard = new LargeButtonKeyboard();
            else
                keyboard = new QwertyKeyboard();

            txtTo.Multiline = true;
            txtSubject.Multiline = true;

            btnCancel.Text = "Cancel";
            btnSend.Text = "Send";
            txtTo.Text = "To:";
            txtSubject.Text = "Subject:";
            txtBody.Text = "Body:";

            Controls.Add(btnAlarm);
            Controls.Add(txtTo);
            Controls.Add(txtSubject);
            Controls.Add(txtBody);
            Controls.Add(btnCancel);
            Controls.Add(btnSend);
            Controls.Add(keyboard);

            btnCancel.Click += BtnCancel_Click;
            btnSend.Click += BtnSend_Click;
            txtTo.Click += TxtTo_Click;
            txtSubject.Click += TxtSubject_Click;
            txtBody.Click += TxtBody_Click;

            txtTo.Font = new Font(txtTo.Font.FontFamily, 20);
            txtSubject.Font = new Font(txtSubject.Font.FontFamily, 20);
            txtBody.Font = new Font(txtBody.Font.FontFamily, 20);

            keyboard.HideTextBox();
            txtBody.Multiline = true;
        }