Exemplo n.º 1
0
        public ConversationMenu(LCPClient client, Panel root, Conversation conv, TabMessageUI controller)
        {
            Conversation = conv;
            Client       = client;
            Root         = root;
            Controller   = controller;

            DataContext = Conversation;
            InitializeComponent();
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
 private void OnLogInSuccessfull(object sender, LogInSuccessfullEvent e)
 {
     RootElement     = new TabMessageUI();
     TabItem.Content = RootElement;
 }