/// <summary> /// load the form with combobox bind /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void InspectionTestInstructionForm_Load(object sender, EventArgs e) { FormDatatableFromVo(); ComboBind(InspectionItemId_cmb, inspectionitemDatatable, "Name", "Id"); Update_btn.Enabled = Delete_btn.Enabled = Detail_btn.Enabled = false; InspectionTestInstructionCode_txt.Select(); }
/// <summary> /// clear the condition control values /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Clear_btn_Click(object sender, EventArgs e) { InspectionTestInstructionCode_txt.Text = string.Empty; InspectionTestInstructionText_txt.Text = string.Empty; InspectionItemId_cmb.SelectedIndex = -1; InspectionTestInstruction_dgv.DataSource = null; Update_btn.Enabled = Delete_btn.Enabled = Detail_btn.Enabled = false; InspectionTestInstructionCode_txt.Select(); }
/// <summary> /// form load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddInspectionProcessForm_Load(object sender, EventArgs e) { FormDatatableFromVo(); ComboBind(InspectionItem_cmb, inspectionitemDatatable, "Name", "Id"); InspectionTestInstructionCode_txt.Select(); if (string.Equals(mode, CommonConstants.MODE_UPDATE)) { LoadInspectionTestInstructionData(updateData); InspectionTestInstructionCode_txt.Enabled = false; InspectionTestInstructionText_txt.Select(); } }