摘要: 异常背景: 第一次开发 WPF 时,所有资源都定义在 App.xaml 文件中。随着项目资源的增多,查看与修改资源时很麻烦,就在 App.xaml 以集成资源字典的方式。 异常原因: 在 App.xaml 中定义资源时,我把项目中需要使用的 Class 都写在最上面 <Application.Res 阅读全文
posted @ 2016-04-22 16:27 Me_Code 阅读(3285) 评论(0) 推荐(1) 编辑
摘要: microsoft visual studio 2013 .net formwork 4.5 阅读全文
posted @ 2016-03-14 12:56 Me_Code 阅读(534) 评论(0) 推荐(0) 编辑
摘要: App.config1.添加引用 => .NET 组件 => System.Configuration2.获取配置文件对象ConfigurationUserLevel configurationUserLevel = Configuration... 阅读全文
posted @ 2015-02-14 12:09 Me_Code 阅读(541) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WyfClass{public class tools{/// /// 得到本周第一天(以星期天为第一天)/// /... 阅读全文
posted @ 2015-01-15 10:52 Me_Code 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1. 新增 public bool DataAdd(USER model) { bool isSuccess = false; try { using (DataBaseEnt... 阅读全文
posted @ 2014-11-17 18:11 Me_Code 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 1. Microsoft Visual Studio 2010>> 添加 >> 新建项 >> 数据 >> ADO.NET 实体数据模型2. 从数据库生成 >> 下一步3. 新建连接4. 选择 "服务器名" >> 选择 "数据库名" >> 确定5. 下一步6. 选择 "表" >> 完成备注: a)A... 阅读全文
posted @ 2014-11-17 16:39 Me_Code 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1.设置X轴滚动条// 设置X轴默认选中的值范围this.chartData.ChartAreas[0].AxisX.ScaleView.Zoom(0, 10);// 启用相关的 Chart 属性this.chartData.ChartAreas[0].CursorX.IsUserEnabled =... 阅读全文
posted @ 2014-11-07 12:27 Me_Code 阅读(406) 评论(1) 推荐(0) 编辑
摘要: 1.查询时,如果列中的值为 null,如何为列赋默认值。SELECT ISNULL([Column],'默认值') AS [Column] FROM [DataTable] 阅读全文
posted @ 2014-11-06 12:33 Me_Code 阅读(481) 评论(0) 推荐(0) 编辑