//AuditDataContext ADC = new AuditDataContext("Server=10.2.100.162;UID=sa;Pwd=sa123;Initial Catalog=Exchange"); public frmAuditViewer() { InitializeComponent(); //AVB = new AuditViewerBusiness(myConn); //list = AVB.GetModulesList(); //var abc = from c in list // select c; //cmbModule.DataSource = abc.ToArray(); //cmbModule.DisplayMember = "Audit_Module_Name"; //cmbModule.ValueMember = "Audit_Module_ID"; //cmbModule.DataSource = list; //cmbModule.DisplayMember = "Audit_Module_Name"; //cmbModule.ValueMember = "Audit_Module_ID"; AuditViewerBusiness.CreateInstance("Server=10.2.100.162;UID=sa;Pwd=sa123;Initial Catalog=Exchange"); }