private void Equipment_Information(object sender, RoutedEventArgs e) { EquipmentInformation equipmentInformation = new EquipmentInformation(); if (scrapping.Children.Contains(equipmentInformation)) { equipmentInformation.Visibility = Visibility.Visible; } else { scrapping.Children.Add(equipmentInformation); equipmentInformation.Name = "equipmentInformation"; } }
private void Information(object sender, RoutedEventArgs e) { EquipmentInformation equipmentInformation = DeviceMigrationsFactory.EquipmentInformation; if (equipment_information.Children.Contains(equipmentInformation)) { equipmentInformation.Visibility = Visibility.Visible; } else { equipment_information.Children.Add(equipmentInformation); equipmentInformation.Name = "equipmentInformation"; } }