private void InitFriendForm(User selectedFriend) { FriendDetails friendDetails = m_Factory.getObjectDetails(selectedFriend) as FriendDetails; if (m_FriendForm == null) { m_FriendForm = new FriendForm(friendDetails); } else { m_FriendForm.Hide(); m_FriendForm.FriendDetails = friendDetails; m_FriendForm.InitContentToLabels(); } m_FriendForm.Show(); }
public FriendForm(FriendDetails i_FriendDetails) { InitializeComponent(); FriendDetails = i_FriendDetails; }