/// <summary> /// FETCH ALL SERVICES FROM THE DATA BASE; /// </summary> public void FetchAllServices() { try { AllServicesDataGrid.DataSource = serviceController.FetAllServicesData(); var counter = utils.CalculateReturns(serviceController.FetAllServicesData(), "serviceReport"); ServiceReturnsMadelbl.Text = counter.TotalReturnsMade; ServiceProductsSoldlbl.Text = counter.TotalProductsSold; } catch (Exception ex) { MessageBox.Show(ex.Message, "Server Response", MessageBoxButtons.OK, MessageBoxIcon.Error); } }