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;
        }
Exemple #3
0
        public ForexChat()
        {
            InitializeComponent();
            vm         = new ForexChatViewModel();
            hubBase    = new HubBase();
            vm.ChatHub = hubBase;
            hubBase.ForexSubscribers += vm.ReceiveForexSymbols;
            hubBase.PageAppear       += vm.AppearPage;

            BindingContext = vm;
        }
Exemple #4
0
 public void Initialize(IExtensionConfig config)
 {
     this.Hub = new VideoHub();
 }