private void frmCustomerIncidents_Load(object sender, EventArgs e) { SQLDataContext.SetConnectionString(ConfigurationManager. ConnectionStrings["SportsPro.Properties.Settings.TechSupportConnectionString"]. ConnectionString); techSupport = SQLDataContext.GetTechSupportDataContext(); LoadCustomerList(); nameComboBox.SelectedIndex = 0; }
private void frmUnassignedIncidents_Load(object sender, EventArgs e) { SQLDataContext.SetConnectionString(ConfigurationManager. ConnectionStrings["SportsPro.Properties.Settings.TechSupportConnectionString"]. ConnectionString); techSupport = SQLDataContext.GetTechSupportDataContext(); LoadUnassignedIncidents(); //set up currency control cm = (CurrencyManager)sQLIncidentDataGridView.BindingContext[incidentList]; }
public static TechSupportDataContext GetTechSupportDataContext() { TechSupportDataContext techSupportSQL = null; if (m_techSupportSQL == null) { if (m_connectionString.Length > 0) { m_techSupportSQL = new TechSupportDataContext(m_connectionString); techSupportSQL = m_techSupportSQL; } } else { techSupportSQL = m_techSupportSQL; } return(techSupportSQL); }
public static TechSupportDataContext GetTechSupportDataContext() { TechSupportDataContext techSupportSQL = null; if (m_techSupportSQL == null) { if (m_connectionString.Length > 0) { m_techSupportSQL = new TechSupportDataContext(m_connectionString); techSupportSQL = m_techSupportSQL; } } else { techSupportSQL = m_techSupportSQL; } return techSupportSQL; }
private void frmIncidentAssignment_Load(object sender, EventArgs e) { SQLDataContext.SetConnectionString(ConfigurationManager. ConnectionStrings["SportsPro.Properties.Settings.TechSupportConnectionString"]. ConnectionString); techSupport = SQLDataContext.GetTechSupportDataContext(); InitializeUI(); }