-
一套c#的完整HIS系统源码
一套c#的完整HIS系统源码:已经广泛应用于各级卫生院、社区医院。
内有完整的C#源码。
- 2022-03-24 15:03:57下载
- 积分:1
-
C# 2015 在按钮中调用出下拉菜单的源码
C# 2015 在按钮中调用出下拉菜单的源码,在按钮中显示一个下拉菜单的小三角,用户单击这个小三角即可显示出下拉菜单,这种用法之前也有不少,但有些新手不知道如何实现,希望通过这个简单的例子源码,你会学习到一些相关的知识技巧,制作出按钮下拉菜单的风格来。
- 2023-02-15 19:40:04下载
- 积分:1
-
C# 使用XmlWriter写XML文件
C# 使用XmlWriter写XML文件,为使文件易读,使用缩进,引用样式,写入注释。写一个元素(根元素),比如genre 属性、ISBN 属性、书名元素、价格元素、写入 CDATA,缓冲器内的内容写入文件。然后加载文件,将XML文件的内容显示在控制台,最后等待用户阅读。通过这个完整的写入XML文件的实例,将XmlWriter的用法完全展现给用户,让你更进一步的了解XmlWriter的用法。
- 2022-05-28 19:11:35下载
- 积分:1
-
C# LockThread()锁定线程以实现线程同步
C# 使用LockThread()方法实现线程监视监控的例子,锁定线程以实现线程同步,实现方法比较简单,可参考以下的代码,完整的代码可在本网页下载:
static void Main(string[] args)
{
Program myProgram = new Program();//实例化类对象
myProgram.LockThread(); //调用锁定线程方法
Console.ReadLine();
}
void LockThread()
{
Monitor.Enter(this);//锁定当前线程
Console.WriteLine("锁定线程以实现线程同步");
Monitor.Exit(this); //释放当前线程
}
- 2022-02-20 05:30:05下载
- 积分:1
-
C# 获取组合查询中两个结果集的交集
Visual C# 获取组合查询中两个结果集的交集,获取学生表和成绩表中学生信息的交集。
- 2022-03-21 14:37:37下载
- 积分: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# wpf 获取并显示掩码文本框中的数据
C# wpf 获取并显示掩码文本框中的数据,也就是显示密码框中的字符,private void MaskedTextBox_TextChanged(object sender, EventArgs e)
{//获取掩码文本框中的数据
var MyBox = sender as System.Windows.Forms.MaskedTextBox;
MyText = MyBox.Text;
}
private void Button_Click(object sender, EventArgs e)
{//显示在掩码文本框中输入的数据
MessageBox.Show("刚才在掩码文本框中输入的数据是:" + MyText, "信息提示");
}
- 2023-03-13 11:25:03下载
- 积分:1
-
C# 按照扩展名分组文件
C# 按照扩展名分组文件,按照文件类型的不同,对文件进行归类显示,分类清淅便于查看,主要是使用MyFile中的对象和方法实现,核心的功能代码如下:
private void ShowGroupFile(IEnumerable> MyQueryGroup)
{
this.listBox1.Items.Clear();
foreach (var MyFileGroup in MyQueryGroup)
{
this.listBox1.Items.Add("包含" + MyFileGroup.Key + "扩展名的文件如下:");
foreach (var MyFileInfo in MyFileGroup)
{
this.listBox1.Items.Add(MyFileInfo.Name);
}
this.listBox1.Items.Add("");
}
}
static IEnumerable GetFiles(string MyDir)
{
if (!System.IO.Directory.Exists(MyDir))
throw new System.IO.DirectoryNotFoundException();
string[] MyFileNames = null;
List MyFiles = new List();
//查找指定目录下的所有子目录中的所有文件
//MyFileNames = System.IO.Directory.GetFiles(MyDir, "*.*", System.IO.SearchOption.AllDirectories);
MyFileNames = System.IO.Directory.GetFiles(MyDir);
foreach (string MyName in MyFileNames)
{
MyFiles.Add(new System.IO.FileInfo(MyName));
}
return MyFiles;
}
- 2022-12-28 08:15:04下载
- 积分:1
-
C# 启动外部计算器计算数据
C# 启动外部计算器计算数据,private void button1_Click(object sender, EventArgs e)
{//启动计算器计算数据(从当前程序向其他程序发送键击数据)
ProcessStartInfo MyStartInfo = new ProcessStartInfo();
MyStartInfo.FileName = "Calc.exe";
Process MyProcess = new Process();
MyProcess.StartInfo = MyStartInfo;
MyProcess.Start();
System.Threading.Thread.Sleep(100);
IntPtr MyHandle = FindWindow("SciCalc", "计算器");
if (MyHandle == IntPtr.Zero)
{
MessageBox.Show("计算器程序没有运行","信息提示",MessageBoxButtons.OK);
return;
}
SetForegroundWindow(MyHandle);
SendKeys.SendWait("88");
SendKeys.SendWait("*");
SendKeys.SendWait("8");
SendKeys.SendWait("=");
}
- 2023-04-17 08:10:03下载
- 积分:1
-
C#开发的SQL数据库存储过程生成器附源码
C#开发的SQL数据库存储过程生成器附源码,是由VS开发的一款代码生成器,名字叫做“SocanCode”,程序作者:廖勇军。主要是生成数据库的存储过程,打开窗口后,在左侧的窗格可新建存储过程,按照程序的导航一步步建立存储过程,最后生成存储过程代码。
SocanCode存储代码生成器,目前已经全部开源,除了生成存储过程代码外,这个程序还有一些其它的小工具,比如HTML转JavaScript、正则表达式生成等。
- 2023-06-01 08:10:03下载
- 积分:1