refactor: edited the nualph creation section
This commit is contained in:
parent
442d018f80
commit
6a21eb789c
13
main_form.cs
13
main_form.cs
|
@ -100,13 +100,16 @@ namespace KRY_0x01_ng
|
|||
TextBox tb_pruned_k = textBox2;
|
||||
TextBox tb_nualph = textBox3;
|
||||
tb_pruned_k.Text = str_to_check;
|
||||
nualphabet = alphabet.Except(str_to_check.ToArray()).ToArray();
|
||||
string nualph_str = "";
|
||||
for (int i = 0; i < nualphabet.Length; i++)
|
||||
char[] transient_alph = new char[25];
|
||||
transient_alph = alphabet.Except(str_to_check.ToArray()).ToArray();
|
||||
string transientalph_str = "";
|
||||
for (int i = 0; i < transient_alph.Length; i++)
|
||||
{
|
||||
nualph_str += nualphabet[i];
|
||||
transientalph_str += transient_alph[i];
|
||||
}
|
||||
tb_nualph.Text = str_to_check + nualph_str;
|
||||
string nualph_str = str_to_check + transientalph_str;
|
||||
tb_nualph.Text = nualph_str;
|
||||
nualphabet = nualph_str.ToCharArray();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue