private void Scrap_Click(object sender, RoutedEventArgs e) { EquipmentClass _Eclass = new EquipmentClass(); DataSet _OutSet = _Eclass.getWorkEquipment(); TakeScrapping ts = new TakeScrapping(); ts.page.ShowPages(ts.scrappingGrid, _OutSet, BaseRequest.PAGE_SIZE); //this.apply_repair.Children.Add(tr);//.Add(_Repair); //JXMessageBox.Show(Window.GetWindow(this) ts.Owner = Window.GetWindow(this); ts.ShowDialog(); }