public ServiceManager(string serviceName)
        {
            _log = new FileLogger();

            _serviceController = new ServiceController();
            _serviceController.ServiceName = serviceName;
        }
        public FormApp()
        {
            InitializeComponent();

            //Initialize the service
            _serviceManager = new ServiceManager("Jonel Communicator");

            //Initialize logger
            _logger = new FileLogger();

            InitializeWindowPropertisAndEvents();

            InitializeTrayIconAndProperties();
        }
        public JonelCommunicator()
        {
            InitializeComponent();

            _logger = new FileLogger();

            startTimer = new Timer();
            startTimer.Elapsed += startTimer_Elapsed;
            startTimer.Interval = 10000;

            //if (!System.Diagnostics.EventLog.SourceExists(EVENT_SOURCE))
            //    System.Diagnostics.EventLog.CreateEventSource(EVENT_SOURCE, EVENT_LOG);

            //eventLog.Source = EVENT_SOURCE;
            //eventLog.Log = EVENT_LOG;
        }
 protected Integrator()
 {
     //Logger.Initialize(Assembly.GetExecutingAssembly(), "Initializing Integrator.");
     _logger = new FileLogger();
     serverURI = String.Format("http://localhost:{0}", Settings.Shared.Port);
 }
        public CommunicationHub ()
	{
            _log=new FileLogger();
	}