摘要:
var window = (MainWindow)Window.GetWindow(this); if (window != null) window.PageContext.Source = new Uri("./ArchivesManage/ArchivesReturn.xaml", UriKi 阅读全文
摘要:
使用ZXing.net生成二维码和一维码图片,再使用PrintDocument打印图片 具体代码: private string GenerateBarCodeImage(string barCode, int width, int height, BarcodeFormat format) { B 阅读全文
摘要:
var adornerLayer = AdornerLayer.GetAdornerLayer(element); 找不到装饰器adornerLayer 手动添加装饰器 <AdornerDecorator Margin="0"> <TextBox Width="200" Height="30" Te 阅读全文
摘要:
my.ini文件配置内容 [client] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] # 设置3306端口 port = 3306 # 设置mysql的安装目录 basedir=D:\mysql # 设置 mysql数据库的数据的存放 阅读全文
摘要:
winForm控件TreeListView按照一定顺序后添加项,后发觉排序顺序自己变了,解决办法: 阅读全文
摘要:
返回自定义的 HttpResponseMessage 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; namespace Utils { public class ModelConvertHelper where T : new(... 阅读全文
摘要:
/// /// 查询扩展 /// /// public static class QueryableExtensions { /// /// Linq If 条件判断语句 IfWhere(条件,p=>xxx) /// /// /// IQuerya... 阅读全文
摘要:
rdlc报表实质上是一个xml文件,如果要实现动态报表,就需要动态生成rdlc文件,实质上就是读写xml文件: 阅读全文