예제 #1
0
        private void CreateAddIns()
        {
            TypeConfigurationCollection addIns = ServiceMainSettings.GetConfig().AddIns;

            foreach (TypeConfigurationElement ele in addIns)
            {
                TabPage page = new TabPage(ele.Description);

                page.Tag = new TabPageTag(ele);

                this.tabControlClient.TabPages.Add(page);
            }
        }
예제 #2
0
        private void WriteDebugString(string strMessage, EventLogEntryType eventType, int eventId)
        {
            try
            {
                if (ServiceMainSettings.GetConfig().OutputDebugString)
                {
                    Trace.WriteLine(strMessage);
                }

                EventLog.WriteEntry(ServiceMainSettings.SERVICE_NAME, strMessage, eventType, eventId);
            }
            catch (Exception)
            {
            }
        }
예제 #3
0
 private ThreadParamCollection GetAllThreadParams()
 {
     return(ServiceMainSettings.GetConfig().ThreadParams);
 }