private void btnAddFing_Click(object sender, RoutedEventArgs e) { MetricsWindow MW = new MetricsWindow(Empl.Id); MW.ShowDialog(); fillMetrics(); }
private void btnSelect_Click(object sender, RoutedEventArgs e) { DataRowView rowView = dataGrid1.SelectedValue as DataRowView; //tBAdd.Text = rowView[1].ToString(); int num = Convert.ToInt32(rowView[0]); MetricsWindow MW = new MetricsWindow(Empl.Id, 1); MW.ShowDialog(); fillMetrics(); }