public ConversationMenu(LCPClient client, Panel root, Conversation conv, TabMessageUI controller) { Conversation = conv; Client = client; Root = root; Controller = controller; DataContext = Conversation; InitializeComponent(); }
public NewConversation(LCPClient client, System.Windows.Controls.Panel root) { Client = client; Root = root; DataContext = this; InitializeComponent(); ResultBox.ItemsSource = SearchResults; ParticipantsBox.ItemsSource = Participants; Client.SearchResultEvent += UpdateSearchResults; }
public EditConversation(LCPClient client, System.Windows.Controls.Panel root, Conversation conv) { Client = client; Root = root; Conversation = conv; Participants = new ObservableCollection <User>(Conversation.Participants); DataContext = Conversation; InitializeComponent(); ResultBox.ItemsSource = SearchResults; ParticipantsBox.ItemsSource = Participants; Client.SearchResultEvent += UpdateSearchResults; }
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(); } }
public FunnyCommand(LCPClient client, StackPanel drawPanel) { Client = client; DrawPanel = drawPanel; }