不灬赖

自律>>自由>>自信

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 10 下一页

2020年6月11日

摘要: PassEventArgsToCommand = "true" 传递鼠标事件参数到命令 Visibility隐藏和显示转换为True or False {Binding IsQueryModel, Converter={converterExtensions:BoolToVisibilityConv 阅读全文
posted @ 2020-06-11 08:54 不灬赖 阅读(605) 评论(0) 推荐(0) 编辑

摘要: Content = {Binding xxxViewModel.View} 创建UserControl.xaml:xxxView.xaml(.cs文件中加入MEF) 创建IxxxView接口: IView 创建xxxViewModel (MEF):ActivableViewModel<IxxxVie 阅读全文
posted @ 2020-06-11 08:51 不灬赖 阅读(253) 评论(0) 推荐(0) 编辑

2020年4月26日

摘要: [Languages]Name: "en"; MessagesFile: "compiler:Default.isl"; Name: "sc"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"; [CustomMessages]en. 阅读全文
posted @ 2020-04-26 16:52 不灬赖 阅读(599) 评论(0) 推荐(0) 编辑

摘要: [Code] // 检查安装路径是否是英文function IsEnglishStr(file: String): Boolean;var value: Integer; len: Integer; i: Integer;begin Result := true; len := length(fil 阅读全文
posted @ 2020-04-26 16:47 不灬赖 阅读(603) 评论(0) 推荐(0) 编辑

2020年4月9日

摘要: 绑定到DataContext: <Button Content=“{Binding DataTime}”/> 绑定到DataContext,并设置绑定模式: <Button x:Name="btn" Content="{Binding DataTime,Mode = OneTime}"/> 绑定到D 阅读全文
posted @ 2020-04-09 14:54 不灬赖 阅读(505) 评论(0) 推荐(0) 编辑

2020年4月2日

摘要: 用途:用于控制一个应用程序只有一个实例运行。 举例: class Client{ private static Mutex _mutex; static void Main(){ if( ! IsStarted()){ Current.ShutDown(); return; } .... } pri 阅读全文
posted @ 2020-04-02 10:42 不灬赖 阅读(333) 评论(0) 推荐(0) 编辑

2020年4月1日

摘要: DataAnnotation 特性由.NET 3.5中引进,给.NET中的类提供了一种添加验证的方式。DataAnnotation由命名空间System.ComponentModel.DataAnnotations提供。下面列举实体模型中常用的DataAnnotation特性: KeyAttribu 阅读全文
posted @ 2020-04-01 15:03 不灬赖 阅读(362) 评论(0) 推荐(0) 编辑

摘要: 数据库 列出所有数据库:SHOW DATABASES; 创建新数据库:CREATE DATABASE <数据库名称>; 删除数据库:DROP DATABASE <数据库名称>; 切换到当前数据库:USE <数据库名称>; 表 列出当前数据库所有表:SHOW TABLES; 查看表结构:DESC <表 阅读全文
posted @ 2020-04-01 13:29 不灬赖 阅读(147) 评论(0) 推荐(0) 编辑

摘要: INSERT: INSERT INTO <表名>(字段1,字段2,...) VALUES (值1,值2,...); UPDATE: UPDATE <表名> SET 字段1=值1,字段2 = 值2,... WHERE ...; DELETE: DELETE FROM <表名> WHERE ...; 阅读全文
posted @ 2020-04-01 13:13 不灬赖 阅读(937) 评论(0) 推荐(0) 编辑

摘要: 基本查询 SELECT * FROM <表名>; 可以查询一个表的所有行和所有列的数据。 SELECT 1; //测试数据库连接; 条件查询 SELECT * FROM <表名> WHERE <条件表达式>; <条件表达式>: <条件1> AND <条件2> <条件1> OR <条件2> NOT < 阅读全文
posted @ 2020-04-01 13:03 不灬赖 阅读(781) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 10 下一页