private void Documents_Click(object sender, RoutedEventArgs e) { try { Contacts row = (Contacts)список_сотрудниковDataGrid.SelectedItems[0]; Documents documents = new Documents(row.id, row.fio, "Workers"); documents.Show(); this.Hide(); } catch { } }
private void Docs_Click(object sender, RoutedEventArgs e) { try { Contacts row = (Contacts)контактные_данныеDataGrid.SelectedItems[0]; Documents documents = new Documents(row.id); documents.Show(); this.Hide(); } catch { } }
private void Window_Closed(object sender, EventArgs e) { if (from == "Workers") { Workers work = new Workers(); work.Show(); } else { Documents docs = new Documents(ID, fio, from); docs.Show(); } }