Exemplo n.º 1
0
 /// <summary>
 /// Initialize SoccerMatchSchedule udt by creating its UdtProvider object
 /// </summary>
 private void InitilizeMatchScheduleUdt()
 {
     if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["udtname"]))
     {
         try
         {
             if (m_objUDTMatchSchedule != null)
             {
                 m_objUDTMatchSchedule.Dispose();
                 m_objUDTMatchSchedule = null;
             }
             m_objUDTMatchSchedule = new UDTProvider.UdtProvider();
             m_objUDTMatchSchedule.InitializeConnection();
             m_objUDTMatchSchedule.InitializeUdt(ConfigurationManager.AppSettings["udtname"]);
         }
         catch (Exception ex)
         {
             LogWriter.WriteLog(ex);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize SoccerMatch udt by creating its UdtProvider object
 /// </summary>
 private void InitializeMatchUdt()
 {
     if (!string.IsNullOrEmpty(MATCHUDTNAME))
     {
         if (m_objUDTMatch != null)
         {
             m_objUDTMatch.Dispose();
             m_objUDTMatch = null;
         }
         m_objUDTMatch = new UDTProvider.UdtProvider();
         m_objUDTMatch.InitializeConnection();
         m_objUDTMatch.InitializeUdt(MATCHUDTNAME);
         MATCHUDTID = m_objUDTMatch.CnctArgs.Udtid;
     }
     else
     {
         MATCHUDTID = string.Empty;
         m_objUDTMatch = null;
     }
 }