예제 #1
0
        private void StatusTB_MouseClick(object sender, MouseEventArgs e)
        {
            classTB.Text   = "Class";
            SpeciesTB.Text = "Species";
            nameTB.Text    = "Name";
            StatusTB.Clear();
            string parmSt = "%";

            SearchAnimal("Class", parmSt);
        }
예제 #2
0
        private void ButtonAddS_Click(object sender, RoutedEventArgs e)
        {
            newStatus      = new Status();
            newStatus.name = StatusTB.Text;

            db.Status.Add(newStatus);
            db.SaveChanges();

            StatusTB.Clear();
            GridAddStatus.Visibility = Visibility.Collapsed;
        }
예제 #3
0
 private void ClearMethod()
 {
     FirstNameTB.Clear();
     designationtextBox.Clear();
     LastNametextBox.Clear();
     StatusTB.Clear();
     DateOfHired.Clear();
     BasicSalaryTB.Clear();
     Amountlabel.Text          = "Basic Salary : 0";
     UpdatedSalaryTb.Text      = "Salary After Updation : 0";
     perradioButton.Checked    = false;
     AmountradioButton.Checked = false;
 }
예제 #4
0
        private void ClearMethod()
        {
            IDTB.Clear();
            FirstNameTB.Clear();
            LastNametextBox.Clear();
            DateOfHired.Clear();
            BasicSalarytextBox.Clear();
            DepartmentTextBoc.Clear();
            designationtextBox.Clear();
            StatusTB.Clear();
            MonthYear.Value           = DateTime.Now;
            perradioButton.Checked    = false;
            AmountradioButton.Checked = false;
            PertextBox.Clear();
            AmounttextBox.Clear();
            ReasontextBox.Clear();

            button1.Enabled        = false;
            button3.Enabled        = false;
            Amountlabel.Text       = "Total Salary : 0";
            DeductionSalaryTb.Text = "Salary After Deduction : 0";
        }
예제 #5
0
 private void writeLineToTextBox(String message)
 {
     StatusTB.AppendText("\n" + message + "\n");
 }