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