public VMInnerRooms(Network Server) { _Server = Server; VMRooms rooms = new VMRooms(_Server); VMCreateRoom cr_room = new VMCreateRoom(_Server); VMRoom room = new VMRoom(_Server); rooms.moveTo += new EventHandler<MoveToEventArgs>(Inner_moveTo); cr_room.moveTo += new EventHandler<MoveToEventArgs>(Inner_moveTo); room.moveTo += new EventHandler<MoveToEventArgs>(Inner_moveTo); cr_room.roomCreation += new EventHandler<RoomEventArgs>(room.roomAssociation); rooms.roomJoin += new EventHandler<RoomEventArgs>(room.roomAssociation); ViewModels = new ObservableCollection<ViewModelBase>() { rooms, cr_room, room }; ViewModelView = CollectionViewSource.GetDefaultView(ViewModels); }
public VMInnerRooms(Network Server) { _Server = Server; VMRooms rooms = new VMRooms(_Server); VMCreateRoom cr_room = new VMCreateRoom(_Server); VMRoom room = new VMRoom(_Server); rooms.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); cr_room.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); room.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); cr_room.roomCreation += new EventHandler <RoomEventArgs>(room.roomAssociation); rooms.roomJoin += new EventHandler <RoomEventArgs>(room.roomAssociation); ViewModels = new ObservableCollection <ViewModelBase>() { rooms, cr_room, room }; ViewModelView = CollectionViewSource.GetDefaultView(ViewModels); }