Beispiel #1
0
 void ClearTextBox()
 {
     NameTextBox.Clear();
     GenderTextBox.Clear();
     AgeTextBox.Clear();
     DepartmentTextBox.Clear();
 }
        private void ResetFormControl()
        {
            StudentNameTextBox.Clear();
            AgeTextBox.Clear();
            GenderTextBox.Clear();
            DescriptionTextBox.Clear();
            IdPictureBox.Dispose();

            StudentNameTextBox.Focus();

            if (this.IsUpdate)
            {
                this.StudentId       = 0;
                this.IsUpdate        = false;
                SaveButton.Text      = "Save User Information";
                DeleteButton.Enabled = false;
                ViewStudentForm vsf = new ViewStudentForm();
                //vsf.LoadDataIntoDataGridView();
                vsf.StudentDataGridView.Refresh();
            }
        }