コード例 #1
0
 /// <summary>
 /// form loading
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ItemForm_Load(object sender, EventArgs e)
 {
     if (!this.DesignMode)
     {
         Update_btn.Enabled = Delete_btn.Enabled = false;
         GlobalItemCode_txt.Select();
     }
 }
コード例 #2
0
ファイル: AddGlobalItemForm.cs プロジェクト: D-Khoa/MyGit
        /// <summary>
        /// form load, loads item data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void AddItemForm_Load(object sender, EventArgs e)
        {
            if (!this.DesignMode)
            {
                GlobalItemCode_txt.Select();

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

                    GlobalItemCode_txt.Enabled = false;

                    GlobalItemName_txt.Select();

                    var resourceMngr = new ResourceManager(this.GetType());
                    this.Text = resourceMngr.GetString("UpdateForm");
                }
            }
        }