public NewPrescriptionForm(int patientID, string providerName, string providerID) { InitializeComponent(); this.thisPatientID = patientID; this.thisProviderName = providerName; this.thisProviderID = providerID; MedicationBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; MedicationBox.AutoCompleteSource = AutoCompleteSource.CustomSource; MedicationBox.AutoCompleteCustomSource = AutoComplete.PrescriptionNameAutoComplete(); }
public UpdatePrescription(string prescriptionName, string amount, string strength, string frequency, double?numberOfRefills, string route, int prescriptionID, int patientID) { InitializeComponent(); this.MedicationBox.Text = prescriptionName; this.AmountBox.Text = amount; this.StrengthBox.Text = strength; this.FrequencyBox.Text = frequency; this.RefillsBox.Text = numberOfRefills.ToString(); this.RouteBox.Text = route; this.thisPrescriptionID = prescriptionID; this.thisPatientID = patientID; MedicationBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; MedicationBox.AutoCompleteSource = AutoCompleteSource.CustomSource; MedicationBox.AutoCompleteCustomSource = AutoComplete.PrescriptionNameAutoComplete(); }