Esempio n. 1
0
 protected override void Execute(CodeActivityContext context)
 {
     ActContext        = context;
     form              = new TextboxForm();
     form.label1.Text  = "Ocena Doktorata:";
     form.btnOk.Click += new EventHandler(ClickBtn);
     form.ShowDialog();
 }
Esempio n. 2
0
        private void SetPasswordBTN_Click(object sender, EventArgs e)
        {
            int index = GetSelectedUserIndex();

            if (index == -2)
            {
                return;
            }

            //Make a tinyform with a numeric updown
            TextboxForm PasswordForm = new TextboxForm("Set Password", "Password");

            PasswordForm.TheBox.PasswordChar = '*';

            //if OK, update PLevel.
            if (PasswordForm.ShowDialog() == DialogResult.OK)
            {
                ((ManageableUser)Users[index]).SetPassword(PasswordForm.TheBox.Text);
            }
            UpdateUserListView();
        }