会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Every day that never dances is a life betrayal.
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2021年1月21日
Mysql整表模式MySqlBulkLoader导入
摘要: 整表模式比逐行插入要快得多,通常数数十万的数据几秒就导入完成,需要配置数据库local_infile=1,用整表模式,DataTable的名字需与数据库中表名对应 DataTable dt_appointment_time_config_day.TableName = "appointment_ti
阅读全文
posted @ 2021-01-21 10:44 be--yourself
阅读(316)
评论(0)
推荐(0)
2020年10月13日
C#获取上级文件夹路径
摘要: /// <summary> /// 获取上级文件夹路径 /// </summary> /// <param name="path">路径</param> /// <param name="degree">级数</param> /// <returns></returns> private strin
阅读全文
posted @ 2020-10-13 14:28 be--yourself
阅读(2263)
评论(0)
推荐(0)
C#string与byte数组转行
摘要: /// <summary> /// string[]-->buffer[] /// </summary> /// <param name="msg"></param> internal static Byte[] StringArrayToBufferArray(string[] array) {
阅读全文
posted @ 2020-10-13 14:26 be--yourself
阅读(255)
评论(0)
推荐(0)
C#BAT与VBS文件的创建和执行调用
摘要: /// <summary> /// 创建bat脚本 /// </summary> /// <param name="batName">文件名</param> /// <param name="fileContent">文件内容</param> /// <param name="u"></param>
阅读全文
posted @ 2020-10-13 14:19 be--yourself
阅读(448)
评论(1)
推荐(0)
C#生成条形码
摘要: /// <summary> /// 生成条形码 /// </summary> /// <param name="height">图片高度设置(px单位)</param> /// <param name="width">图片宽度设置(px单位)</param> /// <param name="typ
阅读全文
posted @ 2020-10-13 11:22 be--yourself
阅读(572)
评论(0)
推荐(0)
C#根据生日计算所属十二星座
摘要: /// <summary> /// 出生月份 /// 出生日期 /// </summary> /// <returns>星座</returns> public static Func<int, int, string> GetConstellation() { return (x, y) => {
阅读全文
posted @ 2020-10-13 11:16 be--yourself
阅读(543)
评论(0)
推荐(0)
2020年9月30日
C#获取某一字符串第N到第N+1空格的字符
摘要: /// <summary> /// 获取某一字符串第N到第N+1空格的字符 /// </summary> /// <returns></returns> public static Func<int, int, string, string, string> GetStrOfStringInBlan
阅读全文
posted @ 2020-09-30 10:48 be--yourself
阅读(520)
评论(0)
推荐(1)
2020年8月10日
WPF的DataGrid表格动态加载合并列
摘要: 效果 xaml <DataGridTemplateColumn > <DataGridTemplateColumn.HeaderTemplate> <DataTemplate > <StackPanel HorizontalAlignment="Stretch" VerticalAlignment=
阅读全文
posted @ 2020-08-10 19:00 be--yourself
阅读(1489)
评论(0)
推荐(0)
2020年8月6日
WPF递归设置CheckBox与TextBox禁用联动
摘要: <Grid Grid.Column="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="80"/> <ColumnDefinition/> <ColumnDefinition Width="10"/> <ColumnDefinition/>
阅读全文
posted @ 2020-08-06 12:07 be--yourself
阅读(486)
评论(0)
推荐(0)
2020年7月28日
WPF基础知识
摘要: 布局 Canvas:子控件提供其自己的布局。 DockPanel:子控件与面板的边缘对齐。 Grid:子控件由行和列定位。 StackPanel:子控件垂直或水平堆叠。 VirtualizingStackPanel:子控件在水平或垂直的行上虚拟化并排列。 WrapPanel:子控件按从左到右的顺序定
阅读全文
posted @ 2020-07-28 20:13 be--yourself
阅读(309)
评论(0)
推荐(0)
2020年7月10日
WPF Popup绑定目标控件上下左右位置
摘要: Popup的 PlacementTarget属性为绑定某个控件 Placement为上下左右方位,效果如下 TextBox <TextBox x:Name="txt_Code" Grid.Column="1" Width="200" Height="28" FontSize="18" Horizon
阅读全文
posted @ 2020-07-10 18:18 be--yourself
阅读(1298)
评论(0)
推荐(0)
WPF TextBox正则匹配限制输入
摘要: 只能输入数字和并保留两位小数点 private void txt_PreviewTextInput(object sender, TextCompositionEventArgs e) { Regex re = new Regex("[^0-9.-]+"); e.Handled = re.IsMat
阅读全文
posted @ 2020-07-10 18:09 be--yourself
阅读(512)
评论(0)
推荐(0)
WPF Path画个勾号
摘要: <Path Data="M 0,100 Q 35,140 54,190 Q 100,45 168,0 S 90,40 50,150 Q 40,136 0,100 Z " Fill="GreenYellow" Stretch="Fill" Margin="50,0,0,0" VerticalAlign
阅读全文
posted @ 2020-07-10 15:11 be--yourself
阅读(1184)
评论(0)
推荐(0)
2020年7月9日
C#提取字符串中的英文
摘要: /// <summary> /// 提取英文 /// </summary> /// <param name="str"></param> /// <returns></returns> public string GetSubString(string str) { Regex regex = ne
阅读全文
posted @ 2020-07-09 20:36 be--yourself
阅读(1127)
评论(0)
推荐(0)
2020年7月8日
WPF手机号码归属批量查询并导出到Excel
摘要: 工具下载地址:https://download.csdn.net/download/m0_37137902/12589801 1WPF页面xaml代码 <Window x:Class="CellPhoneNumberAttribution.MainWindow" xmlns="http://sche
阅读全文
posted @ 2020-07-08 17:59 be--yourself
阅读(333)
评论(0)
推荐(0)
1
2
下一页
公告