public void Setup(RosterItem ri)
 {
     if (!string.IsNullOrEmpty (ri.Nickname))
         ContactNameLabel.Text = ri.Nickname;
     else
         ContactNameLabel.Text = ri.Jid.Bare;
 }
        public MessageWindow(RosterItem ri)
        {
            InitializeComponent ();

            foreign_jid = ri.Jid;
            thread_id = Guid.NewGuid ().ToString ().Replace ("-", "");
            UserAvatar.Image = ri.Avatar;

            Activated += new EventHandler (MessageWindow_Activated);
            FormClosing += new FormClosingEventHandler (MessageWindow_FormClosing);
            Load += new EventHandler (MessageWindow_Load);

            OutgoingTextBox.KeyDown += new KeyEventHandler (OutgoingTextBox_KeyDown);
            RichTextBox1.LinkClicked += new LinkClickedEventHandler (RichTextBox1_LinkClicked);
            SendButton.Click += new EventHandler (SendButton_Click);
        }
 public RosterItemEventArgs(RosterItem ri, jabber.protocol.iq.Item item)
 {
     this.roster_item = ri;
     this.item = item;
 }
Exemple #4
0
 public RosterItemEventArgs(RosterItem ri, jabber.protocol.iq.Item item)
 {
     this.roster_item = ri;
     this.item        = item;
 }