Example #1
0
 private static void ExecutarProcedimentoInicialdoPlugin()
 {
     foreach (var item in Plugins)
     {
         ISmartPlugins plugin = Plugins[item.Key];
         plugin.Logs += (object sender, EventArgs e) => { Log.Info(sender); };
         plugin.AoIdentificarDispositivo += (object sender, EventArgs e) =>
         {
             if (MonitorPedestres != null && MonitorPedestres.Visible == true)
             {
                 MonitorPedestres.ExibirIdentificacao(sender);
             }
         };
         plugin.Iniciar();
     }
 }
Example #2
0
        private static void Iniciar()
        {
            Config = new FormConfig();

            MonitorPedestres = new MonitorPedestres();
            MonitorVeiculos  = new MonitorVeiculos();

            if (Settings.Default.AbrirMonitordePedestre == true)
            {
                MonitorPedestres.Show();
            }

            if (Settings.Default.AbrirMonitordeVeiculos == true)
            {
                MonitorVeiculos.Show();
            }
        }