public AmountEntryForm(AmountDialogType dialogType) { InitializeComponent(); if (dialogType == AmountDialogType.Deposit) { promptLabel.Text = String.Format(promptString, "deposit"); this.Text = "Deposit"; } else if (dialogType == AmountDialogType.Withdraw) { promptLabel.Text = String.Format(promptString, "withdraw"); this.Text = "Withdraw"; } }