コード例 #1
0
 /// <summary>
 /// Loads Mold form
 /// Fill item combobox
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BuildingForm_Load(object sender, EventArgs e)
 {
     BuildingCode_txt.Select();
     FormDatatableFromVo();
     ComboBind(FactoryCode_cmb, factoryDatatable, "code", "code");
     Update_btn.Enabled = Delete_btn.Enabled = false;
 }
コード例 #2
0
        /// <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)
        {
            BuildingCode_txt.Text = string.Empty;

            BuildingName_txt.Text = string.Empty;

            Building_dgv.DataSource = null;

            BuildingCode_txt.Select();
            FactoryCode_cmb.SelectedIndex = -1;
            Update_btn.Enabled            = Delete_btn.Enabled = false;
        }
コード例 #3
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 AddBuildingForm_Load(object sender, EventArgs e)
        {
            FormDatatableFromVo();

            BuildingCode_txt.Select();
            ComboBind(FactoryCode_cmb, factoryDatatable, "code", "code");

            if (string.Equals(mode, CommonConstants.MODE_UPDATE))
            {
                LoadUserData(updateData);
                BuildingCode_txt.Enabled = false;
                BuildingName_txt.Select();
            }
            BuildingCode_txt.Focus();
        }