Esempio n. 1
0
    // PUBLIC METHODS

    public void AddFriend(string primaryKey, string nickname)
    {
        NewFriendDialog popup = (NewFriendDialog)m_Owner.Owner.ShowPopup("NewFriend", string.Empty, string.Empty);

        popup.Nickname   = nickname;
        popup.Username   = string.Empty;
        popup.PrimaryKey = primaryKey;
    }
Esempio n. 2
0
 void OnMessageAction(Chat.Message message, GUIBase_Widget instigator)
 {
     if (instigator.name == "AddFriend_Button")
     {
         NewFriendDialog popup =
             (NewFriendDialog)Owner.ShowPopup("NewFriend", string.Empty, string.Empty, (inPopup, inResult) => { m_Chat.Refresh(); });
         popup.Nickname   = message.Nickname;
         popup.Username   = string.Empty;
         popup.PrimaryKey = message.PrimaryKey;
     }
 }