/// <summary> /// event to clear the controls of search criteria /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Clear_btn_Click(object sender, EventArgs e) { MoldCategoryCode_txt.Text = string.Empty; MoldCategoryName_txt.Text = string.Empty; MoldCategory_dgv.DataSource = null; MoldCategoryCode_txt.Select(); Update_btn.Enabled = Delete_btn.Enabled = false; }
/// <summary> /// Handles Load event for mold data Insert/Update operations /// Loading mold data for update mold data and binding controls with selected mold record /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddMoldCategoryForm_Load(object sender, EventArgs e) { // FormDatatableFromVo(); MoldCategoryCode_txt.Select(); if (string.Equals(mode, CommonConstants.MODE_UPDATE)) { LoadUserData(updateData); MoldCategoryCode_txt.Enabled = false; MoldCategoryName_txt.Select(); } }
/// <summary> /// Loads Mold form /// Fill item combobox /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MoldCategoryForm_Load(object sender, EventArgs e) { MoldCategoryCode_txt.Select(); Update_btn.Enabled = Delete_btn.Enabled = false; }