Beispiel #1
0
        /// <summary>
        /// Loads UserMasterMaintenanceForm
        /// Fill Country combobox
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SapUserMasterForm_Load(object sender, EventArgs e)
        {
            LoadMesUser();

            UserName_cmb.Select();

            Update_btn.Enabled = Delete_btn.Enabled = false;
        }
Beispiel #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)
        {
            SapUserName_txt.Text = string.Empty;

            UserName_cmb.SelectedIndex = -1;

            SapUserdetails_dgv.DataSource = null;

            UserName_cmb.Select();
            Update_btn.Enabled = Delete_btn.Enabled = false;
        }
Beispiel #3
0
        /// <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 AddSapUserMasterForm_Load(object sender, EventArgs e)
        {
            LoadMesUser();

            UserName_cmb.Select();

            if (string.Equals(mode, CommonConstants.MODE_UPDATE))
            {
                LoadUserData(updateData);

                UserName_cmb.Enabled = false;
                SapUserName_txt.Select();
            }
        }