摘要: 代码实现:using System;using System.Data.SqlClient;using System.EnterpriseServices;using System.Reflection;namespace ComponentServiceModel{ [assembly: ApplicationName("ComponentTransaction")] [Transaction(TransactionOption.Required)] public class TransactionExample : ServicedComponent { ... 阅读全文
posted @ 2012-05-08 10:21 烁星 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 首先看一下在Winform下的方式,很简单: foreach (System.Windows.Forms.Control control in this.Controls) { if (control is System.Windows.Forms.TextBox) { System.Windows.Forms.TextBox tb = (System.Windows.Forms.TextBox)control; tb.Text = String.Empty; ... 阅读全文
posted @ 2012-05-08 10:08 烁星 阅读(407) 评论(0) 推荐(0) 编辑