private void btnAddFriend_Click(object sender, RoutedEventArgs e) { AddFriendWindow addFriendWindow = new AddFriendWindow(); addFriendWindow.InitData(this.username, this.userId, this.sex, this.age, this.address, this.post, this.jid, this.head); addFriendWindow.Show(); }
void on_addFriendButton_clicked() { Account account = Gui.ShowAccountSelectMenu(addFriendButton); if (account != null) { AddFriendWindow window = new AddFriendWindow(account); window.Show(); } }