摘要: 一.连接 1.服务器端开始监听 2.客户端Connect()连接服务器端 3.服务器端Accept()产生新的socket,一次连接完成,此时服务器端与客户端就可以使用Send和Receive发送和接受数据 二.发送数据和文件 1.一端发送数据时,在包头(也可以包尾)加上特殊一个字符(比如0和1), 阅读全文
posted @ 2020-07-03 13:49 当年小清新 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 客户端: 界面: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; 阅读全文
posted @ 2020-07-02 18:47 当年小清新 阅读(2195) 评论(0) 推荐(0) 编辑
摘要: HitTestResultBehavior.Continue 是表示继续处理更深层的交叠的视觉元素,如果改为 Stop ,则只处理最表层的视觉元素 Point p= e.GetPosition(sender as UIElement); VisualTreeHelper.HitTest(this, 阅读全文
posted @ 2020-07-01 19:32 当年小清新 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 、 <UserControl x:Class="GmapUserControls.DragLine" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft 阅读全文
posted @ 2020-06-29 20:59 当年小清新 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 使用wpf提供的Thumb控件做拖拽线的效果: <UserControl x:Class="DragLine.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:/ 阅读全文
posted @ 2020-06-24 16:29 当年小清新 阅读(159) 评论(0) 推荐(0) 编辑
摘要: xml文件 <?xml version="1.0" encoding="utf-8"?> <bookstore> <!--记录书本的信息--> <book Type="必修课" ISBN="7-111-19149-2"> <title>数据结构</title> <author>严蔚敏</author 阅读全文
posted @ 2020-06-23 10:49 当年小清新 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1.安装GMap.Net.Presentation(实际上就是添加GMap.Net.Core.dll和GMap.Net.WindowsPresentation.dll) 2.直接声明GMap控件 using GMap.NET.WindowsPresentation; namespace Test2 阅读全文
posted @ 2020-06-16 14:21 当年小清新 阅读(1624) 评论(0) 推荐(0) 编辑
摘要: 准备两个类 class Person { public string Name { set; get; } public int Age { set; get; } } class Dog { public string Name { get; set; } public string Master 阅读全文
posted @ 2020-06-09 14:49 当年小清新 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 一.使用Adobe Photoshop CS6将png格式转换成psd格式 1.使用Adobe Photoshop CS6打开png图片 2.长按ctrl,鼠标点击图层 3.切换至路径,点击从选区生成工作路径 4.切换到图层,点击添加矢量蒙版 5.从基本功能切换到cs6新增功能,选择属性,点击添加矢 阅读全文
posted @ 2020-05-30 15:04 当年小清新 阅读(969) 评论(0) 推荐(0) 编辑
摘要: 一.本地git操作 1.1如何添加到版本库 1.cd到你工作的文件夹 2.使用git init命令使当前文件夹成为工作区(如果有就不用此命令) 3.之后可以随意修改文件夹里面的内容,使用git add -A将工作区文件放入缓冲区 4.最后使用git commit -m 'third'提交到版本库中, 阅读全文
posted @ 2020-05-23 16:34 当年小清新 阅读(147) 评论(0) 推荐(0) 编辑