示例#1
0
 private void OnClientStateChanged(object sender, ClientStateChangedEvent e)
 {
     if (!e.Connected)
     {
         RootElement     = RootElement = new NoConnectionView();
         TabItem.Content = RootElement;
     }
 }
示例#2
0
        public TabMessage()
        {
            LCPClient client = Ressources.Client;

            client.ClientStateChangedEvent += OnClientStateChanged;
            client.LogInSuccessfullEvent   += OnLogInSuccessfull;
            client.ClientSignedOutEvent    += OnClientSignedOut;

            if (client.Connected && client.LoggedIn)
            {
                RootElement = new TabMessageUI();
            }
            else
            {
                RootElement = new NoConnectionView();
            }
        }
示例#3
0
 private void OnClientSignedOut(object sender, ClientSignedOutEvent e)
 {
     RootElement     = new NoConnectionView();
     TabItem.Content = RootElement;
 }