Beispiel #1
0
 /// <summary>
 /// Initializes the upload progress.
 /// </summary>
 private void InitializeUploadProgress()
 {
     this.uploadProgress =
         new UploadProgress(this.language)
     {
         Text = this.language.GetWord("UploadProgressTitle")
     };
 }
Beispiel #2
0
        /// <summary>
        /// Locks the GUI.
        /// </summary>
        /// <param name="value">The value.</param>
        private void LockGui(bool value)
        {
            this.UiThreadInvoke(
                () =>
            {
                this.buttonChooseFiles.Enabled        = !value;
                this.buttonChooseOutputFolder.Enabled = !value;
                this.buttonEncryptAndUpload.Enabled   = !value;
                if (string.IsNullOrWhiteSpace(this.uploadProgress.Text))
                {
                    this.uploadProgress =
                        new UploadProgress(this.language)
                    {
                        Text = this.language.GetWord("UploadProgressTitle")
                    };
                }

                this.uploadProgress.Show();
            });
        }