private void AddModelMasterForm_Load(object sender, EventArgs e) { ModelCode_txt.Select(); if (vo.ModelId > 0) { ModelCode_txt.Text = vo.ModelCode; ModelName_txt.Text = vo.ModelName; } }
private void Clear_btn_Click(object sender, EventArgs e) { ModelCode_txt.Text = string.Empty; ModelName_txt.Text = string.Empty; Machine_dgv.DataSource = null; ModelCode_txt.Select(); }
/// <summary> /// clear contents for input controls /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Clear_btn_Click(object sender, EventArgs e) { ModelCode_txt.Text = string.Empty; ModelName_txt.Text = string.Empty; Model_dgv.DataSource = null; ModelCode_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 AddModelForm_Load(object sender, EventArgs e) { // FormDatatableFromVo(); ModelCode_txt.Select(); if (string.Equals(mode, CommonConstants.MODE_UPDATE)) { LoadUserData(updateData); ModelCode_txt.Enabled = false; ModelName_txt.Select(); } }
/// <summary> /// Form Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ModelForm_Load(object sender, EventArgs e) { ModelCode_txt.Select(); Update_btn.Enabled = Delete_btn.Enabled = false; }