Compute() public method

public Compute ( string keywordString, string whatForString, int length, bool MakeUpperCase, bool MakeLowerCase, bool MakeNumbers, bool MakeSpecialCharacters ) : string
keywordString string
whatForString string
length int
MakeUpperCase bool
MakeLowerCase bool
MakeNumbers bool
MakeSpecialCharacters bool
return string
        private void ComputeUpdate()
        {
            int  length;
            bool isInt = int.TryParse(this.textBoxLength.Text, out length);

            if (isInt)
            {
                this.textBoxLength.Background = this.Resources["TextBoxBackground"] as LinearGradientBrush;
                IncorrectLengthValue          = false;

                if ((this.passwordBoxKeyword.Password.Length > 0) && (this.textBoxWhatFor.Text.Length > 0))
                {
                    this.textBoxResult.Text = gen.Compute(this.passwordBoxKeyword.Password, this.textBoxWhatFor.Text, Convert.ToInt32(this.textBoxLength.Text), (bool)this.checkBoxUpperCase.IsChecked, (bool)this.checkBoxLowerCase.IsChecked, (bool)this.checkBoxNumbers.IsChecked, (bool)this.checkBoxSpecialCharacters.IsChecked);
                }
                else
                {
                    this.textBoxResult.Text = string.Empty;
                }
            }
            else
            {
                this.textBoxResult.Text = string.Empty;

                this.textBoxLength.Background = new SolidColorBrush(Color.FromArgb(255, 255, 58, 0));
                IncorrectLengthValue          = true;
            }
        }
        private void Compute()
        {
            int  length;
            bool isInt = int.TryParse(this.length_textBox.Text, out length);

            if (isInt)
            {
                IncorrectLengthValue = false;

                if ((this.secretKeyword_passwordBox.Password.Length > 0) && (this.whatFor_textBox.Text.Length > 0))
                {
                    this.result_textBox.Text = Generator.Compute(this.secretKeyword_passwordBox.Password, this.whatFor_textBox.Text, Convert.ToInt32(this.length_textBox.Text), (bool)this.upperCase_checkBox.IsChecked, (bool)this.lowerCase_checkBox.IsChecked, (bool)this.numbers_checkBox.IsChecked, (bool)this.specialCharacters_checkBox.IsChecked);
                }
                else
                {
                    this.result_textBox.Text = string.Empty;
                }
            }
            else
            {
                this.result_textBox.Text = string.Empty;
                IncorrectLengthValue     = true;
            }
        }