![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
Litt1eQ
Life is short, you need python.
展开
-
C# 实现FTP上传下载文件
C# 实现FTP下载文件初学C# 需要用到FTP下载文件,在这里记录一下。 class FtpHelper { // 默认常量定义 private static readonly string rootPath = "/"; private static readonly int defaultReadWriteTimeout = 300原创 2017-11-18 16:36:47 · 879 阅读 · 0 评论 -
WPF 长时间无鼠标键盘操作自动回到主页
WPF 长时间无键鼠操作后自动执行某些操作因需要在页面长时间无操作后自动返回首页,在这里记录一下。 利用Windows的API:GetLastInputInfousing System;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Linq;using原创 2017-11-19 10:13:29 · 1500 阅读 · 0 评论 -
C# 实现对象转字典
C#实现对象转字典在学习C#开发过程中,遇到了要把对象转化为字典,在这里记录一下,方便以后查看。using System;using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Text;using System.Threading.Tasks;namespace App原创 2017-11-21 20:39:20 · 10259 阅读 · 0 评论 -
WPF-MVVM双向绑定
WPF-MVVM模式简介刚开始学习WPF的MVVM模式,在这里记录一下踩的坑,留给自己以后使用,欢迎大佬们批评指正。首先写一个Model,继承INotifyPropertyChanged接口。using System.ComponentModel;namespace MVVMTest.Model{ public class StudentModel : INotifyPropertyCha原创 2017-12-09 19:51:49 · 4610 阅读 · 0 评论 -
WPF Page 参数传递
WPF Page 参数传递在学习C# WPF的过程中,遇到了页面之间相互传递参数的问题,查阅资料,请教了一位大神,在这里记录一下,以备以后使用。namespace Application{ public partial class Page1 : Page { private Params params; // 参数 /// <summary>原创 2017-11-23 15:26:32 · 6073 阅读 · 4 评论 -
WPF通知窗口
WPF简单通知窗口在这里记录一下写通知窗口的过程,自己以后可以有所借鉴,表格布局用的不是很熟,如有问题欢迎留言。页面布局<Window x:Class="Apps.NotificationWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://s原创 2017-12-03 16:16:33 · 1688 阅读 · 0 评论 -
C# 判断系统系统是否联网
C#判断系统是否联网写这篇博客记录一下如何用C#判断系统是否联网,留作以后用时的参考。 利用Wininet.dll 中的InternetGetConnectedState函数。// wininet API[DllImport("wininet.dll")]private extern static bool InternetGetConnectedState(out int connectio原创 2017-11-23 21:03:21 · 896 阅读 · 1 评论 -
C#文本朗读
C#文本朗读在这里记录一下C#如何将文本转换为语音,以备以后使用。 主要用到的是SpeechSynthesizer这一个类,要使用首先引入System.Speechusing System.Speech.Synthesis;namespace Apps{ class SpeechHelper { private SpeechSynthesizer voice;原创 2017-11-25 19:41:27 · 526 阅读 · 0 评论