04 2014 档案

摘要:Xaml文件: ... 阅读全文
posted @ 2014-04-17 21:22 巩乃斯大叔 阅读(354) 评论(0) 推荐(0)
摘要:// / /// 存放录入的支付金额 /// private Dictionary dictPayment; public Dictionary DictPayment { get { return... 阅读全文
posted @ 2014-04-14 20:21 巩乃斯大叔 阅读(532) 评论(0) 推荐(0)
摘要:注意需要使用Blend的System.Windows.Interactivity.dll文件。通过 关联到SelectionChanged事件,当前台获取到SelectedItem时,就会调用ViewModel的ExecuteGetItem方法,获取选择项。XAML: ... 阅读全文
posted @ 2014-04-14 20:12 巩乃斯大叔 阅读(711) 评论(0) 推荐(1)
摘要:model.UsingState = (DeskEnum)Enum.Parse(typeof(DeskEnum), row["UsingState"].ToString()); 阅读全文
posted @ 2014-04-10 11:38 巩乃斯大叔 阅读(466) 评论(0) 推荐(0)
摘要:Guid ID = Guid.Parse("d0094166-e435-4a8f-a02e-3167a4550be7"); string str = ID.ToString(); Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings.Add("Default", str); config.Save(); ... 阅读全文
posted @ 2014-04-04 14:54 巩乃斯大叔 阅读(230) 评论(0) 推荐(0)
摘要://step 1 .设置配置文件App.config: //step 2.注意引用:System.Configuration.dllusing System;using System.Collections.Generic;using System.Configuration;using System.Linq;using System.Text;namespace RuiSoft.Common{ public class IsSoftFirstRun { //返回true为首次启动,返回false为非首次启动 pu... 阅读全文
posted @ 2014-04-04 10:40 巩乃斯大叔 阅读(245) 评论(0) 推荐(0)