Beispiel #1
0
 public FrmMain()
 {
     InitializeComponent();
     Load += (sender, e) =>
     {
         DaemonService.Start();
     };
 }
Beispiel #2
0
 private static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     BindExceptionHandler();
     MessageBus.Start();
     DaemonService.Start();
     Application.ApplicationExit += (sender, e) => { MessageBus.Stop(); };
     Application.Run(new FrmMain());
 }
        public static void Main(string[] args)
        {
            var influxDBClient = InfluxDBClientFactory.Create("http://localhost:9999", Token);

            using (var writeApi = influxDBClient.GetWriteApi())
            {
                var batteryReader = new DaemonService(writeApi);
                batteryReader.start();
                Console.ReadKey();
            }
        }
Beispiel #4
0
        public IceBackend()
        {
            initialized = false;

            //
            // Set up the Tasks ListStore
            //
            tasks       = new Gtk.ListStore(typeof(ITask));
            sortedTasks = new Gtk.TreeModelSort(tasks);
            sortedTasks.SetSortFunc(0,
                                    new Gtk.TreeIterCompareFunc(CompareTasksSortFunc));
            sortedTasks.SetSortColumnId(0, Gtk.SortType.Ascending);
            taskIters = new Dictionary <string, Gtk.TreeIter> ();

            categories       = new Gtk.ListStore(typeof(ICategory));
            sortedCategories = new Gtk.TreeModelSort(categories);
            sortedCategories.SetSortFunc(0,
                                         new Gtk.TreeIterCompareFunc(CompareCategoriesSortFunc));
            sortedCategories.SetSortColumnId(0, Gtk.SortType.Ascending);
            categoryIters = new Dictionary <string, Gtk.TreeIter> ();

            DaemonService.Initialize();
        }
      public TrayServiceImpl(DaemonService daemonService) 
      {
         this.daemonService = daemonService;

         new Thread(TrayServiceThreadStart) { IsBackground = true }.Start();
      }
 public TrayServiceImpl(DaemonService daemonService)
 {
     this.daemonService = daemonService;
 }
Beispiel #7
0
 public TrayServiceImpl(DaemonService daemonService)
 {
     this.daemonService = daemonService;
 }