private void UpdateBtn_Click(object sender, RoutedEventArgs e) { Worker selectedRecord = xamlDataGrid.SelectedItem as Worker; AddWorker_Window w = new AddWorker_Window(selectedRecord); w.ShowDialog(); }
private void InsertBtn_Click(object sender, RoutedEventArgs e) { AddWorker_Window w = new AddWorker_Window(); w.ShowDialog(); }