Exemple #1
0
 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;
     }
 }
Exemple #2
0
        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();
        }
Exemple #3
0
        /// <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;
        }
Exemple #4
0
        /// <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();
            }
        }
Exemple #5
0
        /// <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;
        }