public RefEditForm(FaxDataType faxType, FormMode mode, string connectionStr, string faxNumber, string codeDesc) { InitializeComponent(); this.faxType = faxType; this.formMode = mode; this.faxNumber = faxNumber; this.codeDesc = codeDesc; this.connectionString = connectionStr; if (faxType == FaxDataType.SpamFax) { PopualteSpamData(); } else { PopulateCptyData(); } }