public MessengerWindow(string username, string authKey, IDataRequester requester, IMessengerUiComponentProvider uiComponentProvider) { this.username = username; this.authKey = authKey; this.authHeader = new KeyValuePair <string, string>("Authorization", "bearer " + this.authKey); this.requester = requester; this.uiElements = uiComponentProvider; this.chatPanels = new Dictionary <string, StackPanel>(); this.chatLabels = new Dictionary <string, Border>(); this.InitializeComponent(); this.InitializeStyles(); this.InitialiazePubNub(); this.AttachEventsToKeys(); }
public MessengerWindow(string username, string authKey, IDataRequester requester, IMessengerUiComponentProvider uiComponentProvider) { this.username = username; this.authKey = authKey; this.authHeader = new KeyValuePair<string, string>("Authorization", "bearer " + this.authKey); this.requester = requester; this.uiElements = uiComponentProvider; this.chatPanels = new Dictionary<string, StackPanel>(); this.chatLabels = new Dictionary<string, Border>(); this.InitializeComponent(); this.InitializeStyles(); this.InitialiazePubNub(); this.AttachEventsToKeys(); }