Esempio n. 1
0
        private void EditFile()
        {
            S3Credentials     s3Credentials     = new S3Credentials(renderToS3Options.s3credentialsFilename, true);
            S3CredentialsForm s3CredentialsForm = new S3CredentialsForm();

            s3CredentialsForm.Initialize(s3Credentials);
            DialogResult dialogResult = s3CredentialsForm.ShowDialog();

            if (dialogResult == DialogResult.Yes)
            {
                s3CredentialsForm.LoadResult(s3Credentials);
                s3Credentials.WriteXML();
            }
        }
		internal void LoadResult(S3Credentials s3c)
		{
			s3c.accessKeyId = this.s3AccessKeyId.Text;
			s3c.secretAccessKey = this.s3SecretAccessKey.Text;
		}
		internal void Initialize(S3Credentials s3c)
		{
			this.s3AccessKeyId.Text = s3c.accessKeyId;
			this.s3SecretAccessKey.Text = s3c.secretAccessKey;
		}
Esempio n. 4
0
 internal void LoadResult(S3Credentials s3c)
 {
     s3c.accessKeyId     = s3AccessKeyId.Text;
     s3c.secretAccessKey = s3SecretAccessKey.Text;
 }
Esempio n. 5
0
 internal void Initialize(S3Credentials s3c)
 {
     s3AccessKeyId.Text     = s3c.accessKeyId;
     s3SecretAccessKey.Text = s3c.secretAccessKey;
 }
		private void EditFile()
		{
			S3Credentials s3Credentials = new S3Credentials(this.renderToS3Options.s3credentialsFilename, true);
			S3CredentialsForm s3CredentialsForm = new S3CredentialsForm();
			s3CredentialsForm.Initialize(s3Credentials);
			DialogResult dialogResult = s3CredentialsForm.ShowDialog();
			if (dialogResult == DialogResult.Yes)
			{
				s3CredentialsForm.LoadResult(s3Credentials);
				s3Credentials.WriteXML();
			}
		}