public MessageEncrypterForm(ICryptoFacade cryptoFacade) { InitializeComponent(); this.cryptoFacade = cryptoFacade; this.currentInputType = InputType.Empty; this.controlsShownBasedOnInputType = new Control[] { copyMyPublicKeyButton, importPublicKeyDescriptionTextBox, publicKeyForEncryptionComboBox, decryptMessageButton }; this.hasLastInputTextBoxEventBeenTriggeredByThis = false; AttachCryptoFacadeEventHandlers(); AttachControlBehaviors(); AdjustUserInterface(); }
private Program(ICryptoFacade cryptoFacade) { this.cryptoFacade = cryptoFacade; }