AutoPuTTY.popupRecrypt.RecryptProgress C# (CSharp) Method

RecryptProgress() public method

public RecryptProgress ( string args ) : void
args string
return void
        public void RecryptProgress(string[] args)
        {
            pbProgress.Value = Convert.ToInt16(args[0]);
            lProgressValue.Text = args[1];
        }

Usage Example

Beispiel #1
0
        private void bwProgress_ProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e)
        {
            string[] args = (string[])e.UserState;
            switch (args[0])
            {
            case "import":
                args[0] = e.ProgressPercentage.ToString();
                importpopup.ImportProgress(args);
                break;

            case "recrypt":
                args[0] = e.ProgressPercentage.ToString();
                recryptpopup.RecryptProgress(args);
                break;
            }
        }