예제 #1
0
        protected async override void OnAppearing()
        {
            await DIContainer.SignalRClient.EstablishConnection();

            if (Application.Current.Properties.ContainsKey(Constants.CONNECT_PAGE_DISABALED))
            {
                Application.Current.Properties.TryGetValue(Constants.CONNECT_PAGE_DISABALED, out object isMainPageDisabled);
                if (bool.TryParse((string)isMainPageDisabled, out var res) && res)
                {
                    var sendOrReceive = new SendOrReceivePage();
                    await Navigation.PushAsync(sendOrReceive);
                }
            }
        }
예제 #2
0
 protected async void OnConnectClicked(object sender, EventArgs args)
 {
     var sendOrReceive = new SendOrReceivePage();
     await Navigation.PushAsync(sendOrReceive);
 }