private void Button_Click_1(object sender, RoutedEventArgs e) { Equipment ec = (sender as Button).Tag as Equipment; EquipmentAddWindow eaw = new EquipmentAddWindow(ec); eaw.ShowDialog(); }
private void Button_Click(object sender, RoutedEventArgs e) { Equipment new_ec = new Equipment(); EquipmentAddWindow eaw = new EquipmentAddWindow(new_ec); eaw.ocec = ecs; eaw.ShowDialog(); }