private void openFormB(object sender, RoutedEventArgs e) { checkFormBType checkWindow = new checkFormBType(); checkWindow.Owner = checkFormBType.GetWindow(this); idmodel = SELECT.Content.ToString(); MessageBox.Show(idmodel); checkWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; checkWindow.ShowDialog(); }
private void Grid_Loaded(object sender, RoutedEventArgs e) { checkFormBType chckFrm = new checkFormBType(); chckFrm.Owner = this; }