Beispiel #1
0
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif
            // menu
            ts = new ToolStripMenuItem("Configurar HazMat...", null, new EventHandler(MenuClick))
            {
                Name = "config"
            };
            ZeusWin.AgregarConfig(ts);
            // boton
            tb = new ToolStripButton("Guía ERGOS", Resources.ergo_32, ButtonClick)
            {
                Name = "HazMatBtn",
                TextImageRelation     = TextImageRelation.ImageAboveText,
                ImageTransparentColor = Color.Magenta,
                AutoSize = false,
                Width    = 90,
                Height   = 50
            };
            ZeusWin.AgregarBoton(tb);
        }
Beispiel #2
0
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif
            // menu
            ts      = new ToolStripMenuItem("Configurar Consola Tonos...", null, new EventHandler(MenuClick));
            ts.Name = "config";
            ZeusWin.AgregarConfig(ts);
            // boton
            tb      = new ToolStripButton("Consola Tonos", Resources.consola_tonos_32, new EventHandler(ButtonClick));
            tb.Name = "TonosBtn";
            tb.TextImageRelation     = TextImageRelation.ImageAboveText;
            tb.ImageTransparentColor = System.Drawing.Color.Magenta;
            tb.AutoSize = false;
            tb.Width    = 90;
            tb.Height   = 50;
            ZeusWin.AgregarBoton(tb);
        }
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif

            // menu
            if (ZeusWin.TipoOperadora == TipoOperadora.Administrador)
            {
                ts = new ToolStripMenuItem("Configurar Resumen Actos...", null, new EventHandler(MenuClick))
                {
                    Name = "resumenConfig"
                };
                ZeusWin.AgregarConfig(ts);
            }

            // boton
            tb = new ToolStripButton("Resumen Actos", Resources.resumen_actos_servicios_32, ButtonClick)
            {
                Name = "ResumenBtn",
                TextImageRelation     = TextImageRelation.ImageAboveText,
                ImageTransparentColor = Color.Magenta,
                AutoSize = false,
                Width    = 90,
                Height   = 50
            };
            ZeusWin.AgregarBoton(tb);
        }
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif

            // menú
            if (ZeusWin.TipoOperadora == TipoOperadora.Administrador)
            {
                config      = new ToolStripMenuItem("Modificar Sectores...", null, new EventHandler(MenuClick));
                config.Name = "configSector";
            }
            // botón
            button      = new ToolStripButton("Especialidades", Resources.asignacion_carro_especialidad_32, new EventHandler(ButtonClick));
            button.Name = "CEspecialidadesBtn";
            button.TextImageRelation     = TextImageRelation.ImageAboveText;
            button.ImageTransparentColor = System.Drawing.Color.Magenta;
            button.AutoSize = false;
            button.Width    = 90;
            button.Height   = 50;
            ZeusWin.AgregarBoton(button);
        }
Beispiel #5
0
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;
#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif
            // menu
            if (ZeusWin.TipoOperadora == TipoOperadora.Administrador)
            {
                ts = new ToolStripMenuItem("Configurar Despacho por Solicitud de Herramientas y Equipos...", null,
                                           new EventHandler(MenuClick))
                {
                    Name = "dheConfig"
                };
                ZeusWin.AgregarConfig(ts);
            }

            // boton
            tb = new ToolStripButton("Despacho H.E.", Resources.icon, ButtonClick)
            {
                ToolTipText           = "Despacho por Solicitud de Herramientas y Equipos",
                Name                  = "dheButton",
                TextImageRelation     = TextImageRelation.ImageAboveText,
                ImageTransparentColor = Color.Magenta,
                AutoSize              = false,
                Width                 = 90,
                Height                = 50
            };
            ZeusWin.AgregarBoton(tb);
        }
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif

            // boton
            boton = new ToolStripButton("C. Alternativo", Resources.carro_alternativo_32, ButtonClick)
            {
                Name              = "CarroAltBtn",
                ToolTipText       = "Carro Alternativo",
                TextImageRelation = TextImageRelation.ImageAboveText,
                AutoSize          = false,
                Width             = 90,
                Height            = 50
            };
            //boton.ImageTransparentColor = System.Drawing.Color.White;
            ZeusWin.AgregarBoton(boton);

            // menu
            //main = new ToolStripMenuItem("Carros", null, (EventHandler)null);
            //ToolStripMenuItem mc = new ToolStripMenuItem("Carro Alternativo...", null, new EventHandler(MenuClick));
            //mc.Name = "alternativo";
            //main.DropDownItems.Add(mc);
            //ZeusWin.AgregarMenu(main);
        }
Beispiel #7
0
 /// <summary>
 /// inicia la clase, cargando los plugins de la sesión previa
 /// </summary>
 public PluginsManager(IZeusWin parent)
 {
     plugins         = new List <PluginStatus>();
     _pluginsActivos = new StringCollection();
     PluginsVisibles = new StringCollection();
     _parent         = parent;
 }
Beispiel #8
0
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif
            // menu
            //ts = new ToolStripMenuItem("Prueba de Equipos...", null, new EventHandler(MenuClick));
            //ts.Name = "prueba";
            //ZeusWin.AgregarConfig(ts);
            //if (ZeusWin.TipoOperadora == TipoOperadora.Administrador)
            //{
            //    ts2 = new ToolStripMenuItem("Configurar Prueba de Equipos...", null, new EventHandler(MenuClick));
            //    ts2.Name = "config_prueba";
            //    ZeusWin.AgregarConfig(ts2);
            //}

            // boton
            tb = new ToolStripButton("Estadísticas", Resources.statistics_32x32, ButtonClick)
            {
                Name = "EstadisticasBtn",
                TextImageRelation     = TextImageRelation.ImageAboveText,
                ImageTransparentColor = Color.Magenta,
                AutoSize = false,
                Width    = 90,
                Height   = 50
            };
            ZeusWin.AgregarBoton(tb);
        }
Beispiel #9
0
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif

            // menu
            if (ZeusWin.TipoOperadora == TipoOperadora.Administrador)
            {
                ts = new ToolStripMenuItem("Configurar Boletín...", null, new EventHandler(MenuClick))
                {
                    Name = "boletinConfig"
                };
                ZeusWin.AgregarConfig(ts);
            }

            // boton
            tb = new ToolStripButton("Boletín", null, ButtonClick)
            {
                Name = "BoletinBtn",
                TextImageRelation = TextImageRelation.ImageAboveText,
                ImageAlign        = ContentAlignment.TopCenter,
                Image             = Resources.boletin_informativo_32,
                AutoSize          = false,
                Width             = 90,
                Height            = 50
            };
            //tb.ImageTransparentColor = System.Drawing.Color.Magenta;
            ZeusWin.AgregarBoton(tb);

            // precargar assemblies
            //DateTime date = new DateTime(); DateTime ts1 = new DateTime(); DateTime ts2 = new DateTime();
#if CBMS
            BoletinCBMS bc = new BoletinCBMS();
            bc.Load();
#elif CBQN
            //date = DateTime.Now;
            //BoletinCBQN bc = new BoletinCBQN();
            //ts1 = DateTime.Now;
            //bc.Load();
            //ts2 = DateTime.Now;
            //MessageBox.Show("Tiempo new:"+(ts1-date).ToString()+" tiempo load:"+(ts2-ts1).ToString());
#endif
        }
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif
            // menu
            //ts = new ToolStripMenuItem("Libro de Novedades...", null, new EventHandler(MenuClick));
            //ts.Name = "novedades";
            //ZeusWin.AgregarConfig(ts);

            var tmi = new ToolStripMenuItem("Agregar nuevo evento...")
            {
                Name = "cms_novedades"
            };
            tmi.Click += MenuClick;
            tmi        = new ToolStripMenuItem("Ver bitácoras...")
            {
                Name = "cms_ver"
            };
            tmi.Click += MenuClick;


            // boton
            tb = new ToolStripSplitButton("L. Novedades", Resources.libro_novedades_32, new EventHandler(ButtonClick))
            {
                Name                  = "NovedadesBtn",
                ToolTipText           = "Libro Novedades",
                TextImageRelation     = TextImageRelation.ImageAboveText,
                ImageTransparentColor = Color.Magenta,
                AutoSize              = false,
                Width                 = 90,
                Height                = 50
            };
            tb.DropDown.Items.Add("Agregar Nuevo Evento...", null, MenuClick).Name   = "cms_novedades";
            tb.DropDown.Items.Add("Ver Libro de Novedades...", null, MenuClick).Name = "cms_ver";

            ZeusWin.AgregarBoton(tb);
        }
Beispiel #11
0
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;
#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif

            timer = new Timer {
                Interval = 1000
            };
            timer.Tick += timer_Tick;
            // menú
            config = new ToolStripMenuItem("Configurar Alerta de Ferias...", null, new EventHandler(MenuClick))
            {
                Name = "config"
            };
            ZeusWin.AgregarConfig(config);

            Despacho.OnDespacho += DespachoHandler;

            // botón
            tb = new ToolStripButton("Alerta Ferias", /*Resources.feria1.ToBitmap()*/ Resources.ferias_32_1, ButtonClick)
            {
                Name              = "FeriaBtn",
                Enabled           = false,
                TextImageRelation = TextImageRelation.ImageAboveText,
                AutoSize          = false,
                Width             = 90,
                Height            = 50
            };
            //tb.ImageTransparentColor = System.Drawing.Color.Magenta;
            ZeusWin.AgregarBoton(tb);
        }
        public void Initialize(IZeusWin Isg)
        {
            ZeusWin = Isg;

#if USBKEY
            // verificar llave
            USBKey usb = new USBKey();
            if (!usb.IniciarConexion("00"))
            {
                return;
            }
#endif

            // menú
            if (ZeusWin.TipoOperadora == TipoOperadora.Administrador)
            {
                config = new ToolStripMenuItem("Configurar Agenda Inspectores...", null, new EventHandler(MenuClick))
                {
                    Name = "configAgendaDepto"
                };
                ZeusWin.AgregarConfig(config);
            }
            // botón
            button = new ToolStripButton("A. Inspectores", Resources.agenda_inspectores_32, ButtonClick)
            {
                Name                  = "AgendaDepartamentosBtn",
                ToolTipText           = "Agenda Inspectores",
                TextImageRelation     = TextImageRelation.ImageAboveText,
                ImageTransparentColor = Color.Magenta,
                AutoSize              = false,
                Width                 = 90,
                Height                = 50
            };
            //button.Visible = false;
            ZeusWin.AgregarBoton(button);
        }