private void ClearMethod()
        {

            FirstNameTB.Clear();
            LastNametextBox.Clear();
            DateOfBirthTB.Value = DateTime.Now;
            GenderTB.SelectedIndex = -1;
            ContacttextBox.Text = "03";
            NICtextBox.Clear();
            HouseNOtextBox.Clear();
            AddLine1Tb.Clear();
            AddLine2tb.Clear();
            postCodetextBox.Clear();
            DepartmentTextBoc.SelectedIndex = -1;
            designationtextBox.SelectedIndex = -1; ;

            StatuscomboBox.SelectedIndex = -1;
            DateOfHired.Value = DateTime.Now;
            BasicSalarytextBox.Clear();
            JobTitletextBox.Clear();
            PasswordTb.Clear();

            ImgLocation = "";
            


            ProfilePicture.Image = Resources.User1;
        }
Ejemplo n.º 2
0
        private void ClearMethod()
        {
            IDTB.Clear();
            FirstNameTB.Clear();
            LastNametextBox.Clear();
            DateOfBirthTB.Value    = DateTime.Now;
            GenderTB.SelectedIndex = -1;
            ContacttextBox.Clear();
            NICtextBox.Clear();
            HouseNOtextBox.Clear();
            AddLine1Tb.Clear();
            AddLine2tb.Clear();
            postCodetextBox.Clear();
            DepartmentTextBoc.SelectedIndex  = -1;
            designationtextBox.SelectedIndex = -1;

            StatuscomboBox.SelectedIndex = -1;
            DateOfHired.Value            = DateTime.Now;
            BasicSalarytextBox.Clear();
            JobTitletextBox.Clear();
            PasswordTb.Clear();

            UpdateBtn.Enabled = false;
            button1.Enabled   = false;
            ReadID();

            ProfilePicture.Image = Resources.User1;
        }