示例#1
0
        private void Add_Click(object sender, RoutedEventArgs e)
        {
            WorkersInformation workerwindow = new WorkersInformation(null);

            workerwindow.Show();
            this.Close();
        }
示例#2
0
        private void Update_Click(object sender, RoutedEventArgs e)
        {
            var selectedWorker = WorkersItem.SelectedItem as LibraryOfClasses.Worker;

            if (selectedWorker == null)
            {
                MessageBox.Show("Select the item");
                return;
            }
            else
            {
                WorkersInformation filmwindow = new WorkersInformation(selectedWorker);
                filmwindow.Show();
                this.Close();
            }
        }