上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 71 下一页
摘要: 在产品团队中经常听到有人表态:“我们要做简洁的用户界面”,同时又有另外一种声音传来:“我们要做功能强大的产品”。乍一听,简洁意味着用户界面控件精炼,然而少数的交互方式如何表达各类强大的功能?反之,强大意味着功能丰富强劲,必然拥有错综复杂的联系,如何让其界面保持简洁?两者似乎无法共存,这让我突然想到自相矛盾的故事,楚国商人夸耀自己的矛锐利万分,同时自己的盾又坚固无比, “以子之矛,陷子之盾,何如?” 无坚不摧之矛和固若磐石之盾不可能同时存在,两者互相排斥也互相依赖。产品设计的过程中,我们也会遇到不少矛盾的时刻,形形色色的各类矛盾充斥着我们每一个设计细节,接下来聊聊其中几个让我印象比较深刻的。显性 阅读全文
posted @ 2011-09-08 17:21 扯 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 一。需要的数据库字段LastLoginErrDate(日期类型)【登陆失败最大次数时的时间】 LoginErrTimes(整形,默认值为0)【登陆失败的次数】二。 前台代码<div><asp:TextBox ID="txtUserName" runat="server"></asp:TextBox><br /><asp:TextBox ID="txtPwd" runat="server"></asp:TextBox><asp:Button 阅读全文
posted @ 2011-09-05 21:20 扯 阅读(16340) 评论(0) 推荐(1) 编辑
摘要: 一、访问IIS元数据库失败打开CMD,输入 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i , 回车,然后重启IIS即可 阅读全文
posted @ 2011-08-29 14:22 扯 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 今天有个同学配置TFS2010,我在旁边观摩学习了一天,最后终于配置成功,现将简单步骤列出: 1、安装Sqlserver 2008R2 版本(貌似必须) 2、安装TFS2010 3、安装[用于 Microsoft SharePoint® 技术 2010 的 SQL Server® 2008 R2 Reporting Services 外接程序] 这个补丁包貌似也是必须的,下载地址:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=B3BEBF9D-D86D-48CD-94E2-0639A846BE8 阅读全文
posted @ 2011-08-09 17:59 扯 阅读(449) 评论(0) 推荐(0) 编辑
摘要: When you are in a DataTemplate, the DataContext might not be what you expect. Typically the DataContext in a DataTemplate is set to the item that the DataTemplate represents. If your TextChanged command is on the "main viewmodel" instead of the data item, you need to be more precise in the 阅读全文
posted @ 2011-07-18 11:01 扯 阅读(178) 评论(0) 推荐(0) 编辑
摘要: There are no DateTime functions available for snippets but here is a macro that will insert the current DateTime: Sub PrintDateTime() If (Not IsNothing(DTE.ActiveDocument)) Then Dim selection As TextSelection = DTE.ActiveDocument.Selection selection.Insert(DateTime.Now.ToString()) End IfEnd Sub You 阅读全文
posted @ 2011-07-13 17:34 扯 阅读(191) 评论(0) 推荐(0) 编辑
摘要: BaseForm frm = (BaseForm)Assembly.Load(程序集名称).CreateInstance(完整类名称); 阅读全文
posted @ 2011-07-10 16:43 扯 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 工厂方法模式:一个抽象产品类,可以派生出多个具体产品类。 一个抽象工厂类,可以派生出多个具体工厂类。 每个具体工厂类只能创建一个具体产品类的实例。抽象工厂模式:多个抽象产品类,每个抽象产品类可以派生出多个具体产品类。 一个抽象工厂类,可以派生出多个具体工厂类。 每个具体工厂类可以创建多个具体产品类的实例。 区别:工厂方法模式只有一个抽象产品类,而抽象工厂模式有多个。 工厂方法模式的具体工厂类只能创建一个具体产品类的实例,而抽象工厂模式可以创建多个。 阅读全文
posted @ 2011-07-10 16:16 扯 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 一、公共类namespaceGh.Ticket.Common{publicclassExtendedCommandParameter{publicExtendedCommandParameter(EventArgseventArgs,FrameworkElementsender,objectparameter){EventArgs=eventArgs;Sender=sender;Parameter=parameter;}publicEventArgsEventArgs{get;privateset;}publicFrameworkElementSender{get;privateset;}pu 阅读全文
posted @ 2011-07-05 14:25 扯 阅读(3294) 评论(0) 推荐(0) 编辑
摘要: 原理:HttpModule模块在任何请求发生时都会执行,所有可以在该类中执行Url的重映射跳转第一步:定义IHttpModulepublicclassUrlRemapper:IHttpModule{publicvoidInit(HttpApplicationcontext){context.Begi... 阅读全文
posted @ 2011-07-03 12:36 扯 阅读(606) 评论(0) 推荐(0) 编辑
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 71 下一页