/// <summary> /// Loads CustomerMasterMaintenanceForm /// Fill Country combobox /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CustomerMasterForm_Load(object sender, EventArgs e) { FormDatatableFromVo(); CustomerCode_txt.Select(); Update_btn.Enabled = Delete_btn.Enabled = false; }
/// <summary> /// Handles Load event for user data Insert/Update operations /// Loading user data for update user data and binding controls with selected user record /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddCustomerMasterForm_Load(object sender, EventArgs e) { FormDatatableFromVo(); CustomerCode_txt.Select(); if (string.Equals(mode, CommonConstants.MODE_UPDATE)) { LoadUserData(updateData); CustomerCode_txt.Enabled = false; CustomerName_txt.Select(); } }
/// <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) { CustomerCode_txt.Text = string.Empty; CustomerName_txt.Text = string.Empty; Address1_txt.Text = string.Empty; Address2_txt.Text = string.Empty; PhoneNo_txt.Text = string.Empty; EmailId_txt.Text = string.Empty; Customerdetails_dgv.DataSource = null; CustomerCode_txt.Select(); Update_btn.Enabled = Delete_btn.Enabled = false; }