static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.ThreadException += Application_ThreadException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; Program._form = new ClientForm(); Application.Run(Program._form); }
/// <summary> /// Gets the table from products list. /// </summary> /// <param name="list">The list.</param> /// <returns>a datatable containg information in list</returns> private DataTable GetTableFromProductsList(IEnumerable <Product> list) { DataTable dt = ClientForm.BuildProductsTableStructure(); dt.TableName = "Products"; this.PopulateFormattedTable(dt, list); return(dt); }