예제 #1
0
        public ConversationMenu(LCPClient client, Panel root, Conversation conv, TabMessageUI controller)
        {
            Conversation = conv;
            Client       = client;
            Root         = root;
            Controller   = controller;

            DataContext = Conversation;
            InitializeComponent();
        }
예제 #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 OnLogInSuccessfull(object sender, LogInSuccessfullEvent e)
 {
     RootElement     = new TabMessageUI();
     TabItem.Content = RootElement;
 }