/// <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(); } }
/// <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"); } } }