private void InitBinding()
        {
            ServerService.sendFriendMainFrm  = RecvData;
            ProfileNickNameText.DataContext  = MyProfileViewModel.GetInstance();
            ProfileIntroduceText.DataContext = MyProfileViewModel.GetInstance();
            FriendTreeView.ItemsSource       = FriendTreeViewModel.GetInstance();

            MyProfileViewModel.GetInstance().NickName  = FriendWindowEntity.GetInstance().NickName;
            MyProfileViewModel.GetInstance().Introduce = FriendWindowEntity.GetInstance().Introduce;
        }
        public void RecvData(int opcode, ReadPacket r)
        {
            int status = r.readShort();

            switch (status)
            {
            case -1:
            {
                MessageBox.Show("서버 연결이 실패하였습니다.");
                break;
            }

            case 1:
            {
                MessageBox.Show("존재하지 않는 전화번호입니다.");
                break;
            }

            case 2:
            {
                MessageBox.Show("비밀번호가 틀렸습니다.");
                break;
            }

            case 5:
            {
                int    uid       = r.readInt();
                string nickname  = r.readString();
                string introduce = r.readString();

                FriendWindowEntity.GetInstance().Uid       = uid;
                FriendWindowEntity.GetInstance().NickName  = nickname;
                FriendWindowEntity.GetInstance().Introduce = introduce;
                Dispatcher.Invoke(DispatcherPriority.Normal, new Action(delegate
                    {
                        MainWindow main = new MainWindow();
                        this.Hide();
                        main.Show();
                    }));
                break;
            }
            }
        }