摘要:
代码实现:using System;using System.Data.SqlClient;using System.EnterpriseServices;using System.Reflection;namespace ComponentServiceModel{ [assembly: ApplicationName("ComponentTransaction")] [Transaction(TransactionOption.Required)] public class TransactionExample : ServicedComponent { ... 阅读全文
摘要:
首先看一下在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; ... 阅读全文