private void StorageInfo(object sender, MouseButtonEventArgs e) { Rectangle rect = (Rectangle)sender; RoomItems s = new RoomItems("", rect.Name); s.Show(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { ObservableCollection <StorageModel> equipments = new ObservableCollection <StorageModel>(); equipments = StorageRepository.GetInstance().SearchedItemsByRoom(_idRoom); if (equipments.Count == 0) { MessageBox.Show("There are no items in room !", "Storage"); return; } RoomItems room = new RoomItems(equipments); room.Show(); }