public VMInnerBoard(Network Server) { _Server = Server; VMHome home = new VMHome(_Server); VMProfile profile = new VMProfile(_Server); VMCreateEvent create_event = new VMCreateEvent(_Server); VMModifyEvent mod_event = new VMModifyEvent(_Server); VMInnerRooms in_rooms = new VMInnerRooms(_Server); VMInnerDecks in_decks = new VMInnerDecks(_Server); ConversationManager = new VMConversationManager(_Server); Friend = new VMFriend(_Server, ConversationManager); home.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); create_event.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); mod_event.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); Friend.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); in_rooms.moveTo += new EventHandler <MoveToEventArgs>(Inner_moveTo); /* * contains the home and profile screen (and probably more if this comment is not updated) */ ViewModels = new ObservableCollection <ViewModelBase>() { home, profile, create_event, mod_event, in_rooms, in_decks }; ViewModelView = CollectionViewSource.GetDefaultView(ViewModels); }
public VMInnerBoard(Network Server) { _Server = Server; VMHome home = new VMHome(_Server); VMProfile profile = new VMProfile(_Server); VMCreateEvent create_event = new VMCreateEvent(_Server); VMModifyEvent mod_event = new VMModifyEvent(_Server); VMInnerRooms in_rooms = new VMInnerRooms(_Server); VMInnerDecks in_decks = new VMInnerDecks(_Server); ConversationManager =new VMConversationManager(_Server); Friend = new VMFriend(_Server, ConversationManager); home.moveTo +=new EventHandler<MoveToEventArgs>(Inner_moveTo); create_event.moveTo += new EventHandler<MoveToEventArgs>(Inner_moveTo); mod_event.moveTo += new EventHandler<MoveToEventArgs>(Inner_moveTo); Friend.moveTo += new EventHandler<MoveToEventArgs>(Inner_moveTo); in_rooms.moveTo += new EventHandler<MoveToEventArgs>(Inner_moveTo); /* * contains the home and profile screen (and probably more if this comment is not updated) */ ViewModels = new ObservableCollection<ViewModelBase>() { home, profile, create_event, mod_event, in_rooms, in_decks }; ViewModelView = CollectionViewSource.GetDefaultView(ViewModels); }