/*----------------------------------------------------- 分割线  ----------------------------------------------------------------*/
        #region 客户端内的方法
        //画板相关+聊天室登录信息显示
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //初始化两个服务端接口
            client      = new ServiceClient(new InstanceContext(this));
            loginclient = new LoginServiceClient();
            //显示登录
            client.Login(us.Name);
            client.Info(us.Acount);
            this.textBoxUserName.Content = us.Name;

            //初始化墨迹和画板
            currentColor = Colors.Red;
            inkDA        = new DrawingAttributes()
            {
                Color      = currentColor,
                Height     = 6,
                Width      = 6,
                FitToCurve = false
            };
            inkcanvas.DefaultDrawingAttributes = inkDA;
            inkcanvas.EditingMode = InkCanvasEditingMode.Ink;
        }