private void Button_Click_2(object sender, RoutedEventArgs e) { RedKlient redKlient = new RedKlient(); redKlient.vid = 1; this.Close(); redKlient.ShowDialog(); }
private void Button_Click_3(object sender, RoutedEventArgs e) { RedKlient redKlient = new RedKlient(); redKlient.vid = 2; redKlient.view = datagrid.SelectedItem as DataRowView; this.Close(); redKlient.ShowDialog(); }