private string PasswordRequested(string details)
 {
     PasswordRequiredForm form = new PasswordRequiredForm();
     form.details.Text = details;
     form.password.Focus(); // doesn't work..?
     if (form.ShowDialog() == DialogResult.OK)
         return form.password.Text;
     else
         return null;
 }
Exemplo n.º 2
0
        private string PasswordRequested(string details)
        {
            PasswordRequiredForm form = new PasswordRequiredForm();

            form.details.Text = details;
            form.password.Focus(); // doesn't work..?
            if (form.ShowDialog() == DialogResult.OK)
            {
                return(form.password.Text);
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 3
0
        private void buttonNewBucket_Click(object sender, EventArgs e)
        {
            PasswordRequiredForm form = new PasswordRequiredForm();

            form.title1.Text  = "New Bucket Name";
            form.Text         = "New Bucket Name";
            form.details.Text = "Please enter a name for the new bucket";

            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            conn.CreateBucket(JungleDiskBucketFromDisplayName(conn.AccessKey, form.password.Text), null, false);
            LoadBucketList();
        }
		private void buttonNewBucket_Click(object sender, EventArgs e)
		{
			PasswordRequiredForm form = new PasswordRequiredForm();

			form.title1.Text = "New Bucket Name";
			form.Text = "New Bucket Name";
			form.details.Text = "Please enter a name for the new bucket";
			
			if (form.ShowDialog() != DialogResult.OK)
				return;

			conn.CreateBucket(JungleDiskBucketFromDisplayName(conn.AccessKey, form.password.Text), null, false);
			LoadBucketList();
		}