예제 #1
0
        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();
        }
예제 #2
0
 public FriendForm(FriendDetails i_FriendDetails)
 {
     InitializeComponent();
     FriendDetails = i_FriendDetails;
 }