private void SubmitVHR_Click(object sender, RoutedEventArgs e) { string[] data = new string[6]; data[0] = VHRVINBox.GetLineText(0); data[1] = VHRPreviousOwnersBox.GetLineText(0); data[2] = VHRRatingBox.GetLineText(0); data[3] = VHRMileageBox.GetLineText(0); try { try { MC.ModifyVHR(data); } catch (ArgumentException AE) { ErrorWindow Error = new ErrorWindow(AE.Message); Error.Title = "Data Field Error"; Error.ShowDialog(); } } catch (OleDbException ex) { ErrorWindow Error = new ErrorWindow(ex.Message); Error.Title = "Data Field Error"; Error.ShowDialog(); } VHRVINBox.Clear(); VHRPreviousOwnersBox.Clear(); VHRRatingBox.Clear(); VHRMileageBox.Clear(); }
private void SubmitVHR_Click(object sender, RoutedEventArgs e) { string[] data = new string[6]; data[0] = VHRVINBox.GetLineText(0); data[1] = VHRPreviousOwnersBox.GetLineText(0); data[2] = VHRRatingBox.GetLineText(0); data[3] = VHRMileageBox.GetLineText(0); MC.ModifyVHR(data); VHRVINBox.Clear(); VHRPreviousOwnersBox.Clear(); VHRRatingBox.Clear(); VHRMileageBox.Clear(); }