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); } }
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) { } }
private ThreadParamCollection GetAllThreadParams() { return(ServiceMainSettings.GetConfig().ThreadParams); }