/// <summary>
        /// Initializes a new instance of the OF_ChatWindow class
        /// </summary>
        /// <param name="xmppChats">All chats</param>
        /// <param name="jid">Jid of the chat</param>
        public OF_ChatWindow(Xmpp.Chats <Xmpp.ChatData> xmppChats, Sharp.Xmpp.Jid jid)
        {
            this.InitializeComponent();
            this.xmppChats = new Xmpp.Chats <Xmpp.ChatData>();

            this.xmppJid      = jid;
            OF_SendButton.Tag = jid;
            OF_MsgBox.Tag     = jid;
            this.Title        = this.Title + " > " + this.xmppJid;

            ////this.chatBox.Items. = XC.Single(j => j.Jid == C_jid).Msgs;
            this.xmppChats.CollectionChanged += this.XmppChats_CollectionChanged;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the OF_GroupChatWindow class
        /// </summary>
        /// <param name="xxmppChats">All chats</param>
        /// <param name="jjid">Group jid</param>
        public OF_GroupChatWindow(Xmpp.Chats <Xmpp.ChatData> xxmppChats, Sharp.Xmpp.Jid jjid)
        {
            this.InitializeComponent();
            this.xmppChats = new Xmpp.Chats <Xmpp.ChatData>();

            this.jid    = jjid;
            OF_Send.Tag = jjid;
            OF_Msg.Tag  = jjid;
            this.Title  = this.Title + " > " + this.xmppChats;

            ////this.chatBox.Items. = XC.Single(j => j.Jid == C_jid).Msgs;
            //// iXC2.CollectionChanged += XC2_CollectionChanged;
        }