Example #1
0
        /// <summary>
        /// form load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EquipmentForm_Load(object sender, EventArgs e)
        {
            Update_btn.Enabled = Delete_btn.Enabled = false;

            InstrationDate_dtp.Value = DateTimePicker.MinimumDateTime;
            EquipmentCode_txt.Select();
        }
Example #2
0
        /// <summary>
        /// load the screen
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddEquipmentForm_Load(object sender, EventArgs e)
        {
            EquipmentCode_txt.Select();

            this.InstrationDate_dtp.Format = DateTimePickerFormat.Custom;

            this.InstrationDate_dtp.CustomFormat = UserData.GetUserData().DateTimeFormat.ShortDatePattern;

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

                EquipmentCode_txt.Enabled = false;

                EquipmentName_txt.Select();
            }
        }