예제 #1
0
        public ChatTabsPage(RootPage root, string moduleName)
        {
            BindingContext = new ChatViewModel(root, moduleName);

            Title = moduleName;

            Children.Add(new RoomsPage(ViewModel));
            Children.Add(new ChatPage(ViewModel));

            CurrentPage = Children[1];

            SetupListeners();

            ChangeToolbarItems();

#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            DelayedConnect();
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
        }
예제 #2
0
        public RoomsPage(ChatViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = viewModel;
        }