Пример #1
0
        private void frmCustomerIncidents_Load(object sender, EventArgs e)
        {
            SQLDataContext.SetConnectionString(ConfigurationManager.
                                ConnectionStrings["SportsPro.Properties.Settings.TechSupportConnectionString"].
                                    ConnectionString);

            techSupport = SQLDataContext.GetTechSupportDataContext();

            LoadCustomerList();
            nameComboBox.SelectedIndex = 0;
        }
Пример #2
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];
        }
Пример #3
0
        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);
        }
Пример #4
0
        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;
        }
Пример #5
0
        private void frmIncidentAssignment_Load(object sender, EventArgs e)
        {
            SQLDataContext.SetConnectionString(ConfigurationManager.
                                ConnectionStrings["SportsPro.Properties.Settings.TechSupportConnectionString"].
                                    ConnectionString);

            techSupport = SQLDataContext.GetTechSupportDataContext();

            InitializeUI();
        }