private void Add_Click(object sender, RoutedEventArgs e) { WorkersInformation workerwindow = new WorkersInformation(null); workerwindow.Show(); this.Close(); }
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(); } }