/// <summary> /// Function to fill controlls to edit or delete /// </summary> public void FillControls() { try { ServiceCategoryInfo infoServiceCategory = new ServiceCategoryInfo(); ServiceCategorySP spServiceCategory = new ServiceCategorySP(); infoServiceCategory = spServiceCategory.ServiceCategoryWithNarrationView(Convert.ToDecimal(dgvServiceCategory.CurrentRow.Cells[1].Value.ToString())); txtServiceCategory.Text = infoServiceCategory.CategoryName; txtNarration.Text = infoServiceCategory.Narration; btnSave.Text = "Update"; btnDelete.Enabled = true; strCategoryName = infoServiceCategory.CategoryName; decCategoryName = infoServiceCategory.ServicecategoryId; } catch (Exception ex) { MessageBox.Show("SC8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill controlls to edit or delete /// </summary> public void FillControls() { try { ServiceCategoryInfo infoServiceCategory = new ServiceCategoryInfo(); ServiceCategorySP spServiceCategory = new ServiceCategorySP(); infoServiceCategory = spServiceCategory.ServiceCategoryWithNarrationView(Convert.ToDecimal(dgvServiceCategory.CurrentRow.Cells[1].Value.ToString())); txtServiceCategory.Text = infoServiceCategory.CategoryName; txtNarration.Text = infoServiceCategory.Narration; btnSave.Text = "Update"; btnDelete.Enabled = true; strCategoryName = infoServiceCategory.CategoryName; decCategoryName = infoServiceCategory.ServicecategoryId; } catch (Exception ex) { formMDI.infoError.ErrorString = "SC8" + ex.Message; } }
/// <summary> /// Function to fill controlls to edit or delete /// </summary> public void FillControls() { try { ServiceCategoryInfo infoServiceCategory = new ServiceCategoryInfo(); ServiceCategorySP spServiceCategory = new ServiceCategorySP(); infoServiceCategory = spServiceCategory.ServiceCategoryWithNarrationView(Convert.ToDecimal(dgvServiceCategory.CurrentRow.Cells[1].Value.ToString())); txtServiceCategory.Text = infoServiceCategory.CategoryName; txtNarration.Text = infoServiceCategory.Narration; btnSave.Text = "Update"; btnDelete.Enabled = true; strCategoryName = infoServiceCategory.CategoryName; decCategoryName = infoServiceCategory.ServicecategoryId; } catch (Exception ex) { MessageBox.Show("SC8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }