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

            DataContext = Conversation;
            InitializeComponent();
        }
Beispiel #2
0
        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;
        }
Beispiel #4
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();
            }
        }
Beispiel #5
0
 public FunnyCommand(LCPClient client, StackPanel drawPanel)
 {
     Client    = client;
     DrawPanel = drawPanel;
 }