public DashboardforSP(string spUserName) { InitializeComponent(); this.spUserName = spUserName; generalOperations = new GeneralOperations(); accessProperty = generalOperations.GetServiceProviderRegDetails(spUserName); fullnametextBox.Text = accessProperty.FullName; divisiontextBox.Text = accessProperty.Division; citytextBox.Text = accessProperty.City; addresstextBox.Text = accessProperty.Address; mobilenumbertextBox.Text = accessProperty.MobileNumber; generalOperations2 = new GeneralOperations(); accessProperty2 = generalOperations2.GetServiceProviderAdditionalDetails(spUserName); try { servicechargetextBox.Text = accessProperty2.ServiceCharge.ToString(); availabilitytextBox.Text = accessProperty2.AvailStime; } catch (Exception exp) { } }