示例#1
0
        private void addWorkerbutton_Click(object sender, RoutedEventArgs e)
        {
            Worker wo = new Worker(tBWorkerID.Text, tBWorkerFirstName.Text, tBWorkerLastname.Text, dpWorkerBirthday.SelectedDate.Value.Date);

            bl.addWorker(wo);
            _WorkersCollection.Add(wo);
        }