private void ProcessText(EncryptionEnum processType, IEncryption coder, string text) { string result = string.Empty; switch (processType) { case EncryptionEnum.Encoding: result = coder.Encoding(text); break; case EncryptionEnum.Decoding: result = coder.Decoding(text); break; } view.SetOutText(result); }