-
空调控制源代码
空调控制源代码,在这里贡献给大家研究
- 2023-02-04 07:30:04下载
- 积分:1
-
ATK-ESP8266 WIFI模块资料
1、ATK-ESP8266 WIFI 模块简介 ATK-ESP8266 是 ALIENTEK 推出的一款高性能的 UART-WiFi(串口-无线)模块,ATK-ESP8266 板载ai-thinker公司的ESP8266模块,该模块通过 FCC,CE认证,可直接用于产品出口欧美地区。 ATK-ESP8266模块采用串口(LVTTL)与MCU(或其他串口设备)通信,内置 TCP/IP协议栈,能够实现串口与WIFI之间的转换。 通过 ATK-ESP8266 模块,传统的串口设备只是需要简单的串口配置,即可通过网络(WIFI)传输自己的数据。 ATK-ESP8266 模块支持 LVTTL串口,兼容3.3V和5V单片机系统,可以很方便的与你的产品进行连接。模块支持串口转 WIFI STA、串口转 AP 和WIFI STA+WIFI AP 的模式,从而快速构建串口-WIFI数据传输方案,方便你的设备使用互联网传输数据。 ATK-ESP8266 29mm*19mm 6 2.54mm
- 2022-08-13 08:01:09下载
- 积分:1
-
Visual C# 计算器实例程序
Visual C# 又一个适合学习的计算器实例程序,比较简单,只是实现基础的数学运算,没有高级功能,在此就不多介绍了,计算程序您可以在此搜索一下,C#类的计算器制作实例有很多哦。
- 2022-11-13 08:30:04下载
- 积分:1
-
C# 判断是否为数值
C# 判断是否为数值,具体来说就是判断学生年龄是否为数值,private List GetStudent()
{
string P_Str_ConnectionStr = string.Format(//创建数据库连接字符串
@"server=WIN-GI7E47AND9RLS;database=db_TomeTwo;uid=sa;pwd=");
string P_Str_SqlStr = string.Format(//创建SQL查询字符串
"SELECT 学生姓名,ISNUMERIC(年龄) FROM tb_Student");
SqlDataAdapter P_SqlDataAdapter = new SqlDataAdapter(//创建数据适配器
P_Str_SqlStr, P_Str_ConnectionStr);
DataTable P_dt = new DataTable();//创建数据表
P_SqlDataAdapter.Fill(P_dt);//填充数据表
List P_str = new List();//创建数据集合
foreach (DataRow item in P_dt.Rows)
{
P_str.Add(new Instance() { 姓名=item[0].ToString(),//添加数据项
年龄 = item[1].ToString() ==
"1" ? "数值" : "非数值" });
}
return P_str;//数据集合
}
- 2022-03-19 05:06:24下载
- 积分:1
-
7Zip
This file is part of SevenZipSharp. SevenZipSharp is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SevenZipSharp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with SevenZipSharp. If not, see .
- 2022-07-20 00:09:31下载
- 积分:1
-
C# 根据文件名提取文件类型图标
C# 根据文件名提取文件类型图标,设定好文件目录后,本例中是读取C:Windows下的所有文件,并根据文件类型自动显示图标,如测试图所示,将文件类型的图标添加到listView中,下面是具体的实现代码:
this.imageList1.Images.Clear();
this.listView1.Items.Clear();
string MyFolder = @"C:Windows";
DirectoryInfo MyDir = new DirectoryInfo(MyFolder);
ListViewItem MyItem;
this.listView1.BeginUpdate();
foreach (FileInfo MyFile in MyDir.GetFiles())
{
Icon MyIcon = SystemIcons.WinLogo;
MyItem = new ListViewItem(MyFile.Name, 1);
MyIcon = Icon.ExtractAssociatedIcon(MyFile.FullName);
if (!this.imageList1.Images.ContainsKey(MyFile.Extension))
{
MyIcon =Icon.ExtractAssociatedIcon(MyFile.FullName);
this.imageList1.Images.Add(MyFile.Extension, MyIcon);
}
MyItem.ImageKey = MyFile.Extension;
this.listView1.Items.Add(MyItem);
}
- 2023-07-30 19:25:04下载
- 积分:1
-
改善C#的157个建议编写高质量代码_源代码合集
改善C#的157个建议编写高质量代码_源代码合集,这些实例均采用4.0框架,请运行使用Release模式;部分TIP由于简单未给出源码;这157个建议的源码涉及到语言篇、集合和LINQ、泛型、委托和事件、资源管理和序列化、异常与自定义异常、异步、多线程、任务和并行、架构篇成员设计、类型设计、安全性设计、编码规范及习惯、代码整洁、规范开发行为等,每类细分一共形成了157条建议,相信这些建议对于向高深进阶的C#开发者来说,是难得的建议。
- 2022-07-10 03:10:19下载
- 积分:1
-
《Visual.C#.编程精彩百例》配套随书光盘源码
《Visual.C#.编程精彩百例》配套随书光盘源码,涉及到书中方方面面的实例,包括界面设计、数据库、系统控制、基础知识、算法、多媒体播放等众多类型的源代码,是学习C#基础编程很好的实例集。
- 2023-09-09 21:35:05下载
- 积分:1
-
C# wpf 创建简单形状动画的例子
C# wpf 创建简单形状动画的例子,启动动画、停止动画、暂停动画、继续动画、加速动画。创建动画
Rectangle MyRectangle = new Rectangle();
MyRectangle.Width = 50;
MyRectangle.Height = 20;
MyRectangle.Margin = new Thickness(10, 50, 0, 0);
MyRectangle.Fill = new LinearGradientBrush(
Color.FromArgb(255, 0, 255, 255), Color.FromArgb(255, 0, 0, 255), 0);
MyRectangle.HorizontalAlignment = HorizontalAlignment.Left;
this.canvas1.Children.Add(MyRectangle);
this.RegisterName("MyRectangle", MyRectangle);
DoubleAnimation MyAnimation =
new DoubleAnimation(100, 380, new Duration(TimeSpan.FromSeconds(5)));
Storyboard.SetTargetName(MyAnimation, "MyRectangle");
Storyboard.SetTargetProperty(MyAnimation,
new PropertyPath(Rectangle.WidthProperty));
MyStoryboard = new Storyboard();
MyStoryboard.Children.Add(MyAnimation);
动画效果请参见下图所示,源代码请单击下载按钮下载。
- 2022-08-25 13:04:57下载
- 积分:1
-
C#操作数据库显示Customers数据表第3-7条记录
显示Customers数据表第3-7条记录,C#操作数据库显示Customers数据表第3-7条记录,其实做出来例子,才知道,很简单啊,不过需要把数据库先连接好,看如下代码:
private void button1_Click(object sender, EventArgs e)
{//显示Customers数据表第3-7条记录
SqlConnection MyConnection=new SqlConnection();
MyConnection.ConnectionString = @"Data Source =.SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True";
MyConnection.Open();
SqlCommand MyCommand =new SqlCommand("Select * From Customers ORDER BY CustomerID", MyConnection);
DataSet MySet = new DataSet();
SqlDataAdapter MyAdapter = new SqlDataAdapter(MyCommand);
MyAdapter.Fill(MySet, 2, 5, "Customers");
this.dataGridView1.DataSource=MySet.Tables["Customers"];
}
- 2022-03-03 23:39:45下载
- 积分:1