public ChatPageView() { InitializeComponent(); vm = new ChatPageViewModel(); hubBase = new HubBase(); vm.ChatHub = hubBase; hubBase.Subscribers += vm.ReceiveMessagew; BindingContext = vm; }
public RoomView(string roomName) { InitializeComponent(); hubBase = new HubBase(); vm = new RoomViewModel(roomName); this.Title = roomName; vm.ChatHub = hubBase; vm.ChatHub.Messages += vm.ReceiveMessage; BindingContext = vm; }
public ForexChat() { InitializeComponent(); vm = new ForexChatViewModel(); hubBase = new HubBase(); vm.ChatHub = hubBase; hubBase.ForexSubscribers += vm.ReceiveForexSymbols; hubBase.PageAppear += vm.AppearPage; BindingContext = vm; }
public void Initialize(IExtensionConfig config) { this.Hub = new VideoHub(); }