コード例 #1
0
ファイル: frmMainForm.cs プロジェクト: waysn39/MyWeChatHelper
        /// <summary>
        /// 构造方法
        /// </summary>
        public frmMainForm()
        {
            InitializeComponent();

            _chat2friend                 = new WChatBox();
            _chat2friend.Dock            = DockStyle.Fill;
            _chat2friend.Visible         = false;
            _chat2friend.FriendInfoView += new FriendInfoViewEventHandler(_chat2friend_FriendInfoView);
            Controls.Add(_chat2friend);

            _friendInfo            = new WPersonalInfo();
            _friendInfo.Dock       = DockStyle.Fill;
            _friendInfo.Visible    = false;
            _friendInfo.StartChat += new StartChatEventHandler(_friendInfo_StartChat);
            Controls.Add(_friendInfo);

            _lblWait           = new Label();
            _lblWait.Text      = "数据加载.....";
            _lblWait.AutoSize  = false;
            _lblWait.Size      = this.ClientSize;
            _lblWait.TextAlign = ContentAlignment.MiddleCenter;
            _lblWait.Location  = new Point(0, 0);
            Controls.Add(_lblWait);
        }