public ConversationMenu(LCPClient client, Panel root, Conversation conv, TabMessageUI controller) { Conversation = conv; Client = client; Root = root; Controller = controller; DataContext = Conversation; InitializeComponent(); }
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(); } }
private void OnLogInSuccessfull(object sender, LogInSuccessfullEvent e) { RootElement = new TabMessageUI(); TabItem.Content = RootElement; }