private IEnumerable <ToolStripItem> OnCreateMenu() { RefreshConfig(); HeadMenu = new ToolStripMenuItem(AppConfig.Name, DefaultIcon.ToBitmap()); foreach (var link in Config.Items) { var menu = link.GetMenu(); // NOTAS if (link.Id == "B81B085E-2319-4B74-9EC8-4FA35A3F3068") { var notes = new NOTES.Notes().GetNotes(); foreach (var n in notes) { var m = new ToolStripMenuItem(n.Title); m.Tag = n; m.Image = Properties.Resources.note.ToBitmap(); m.Click += NOTES.Notes.OpenNote; menu.DropDownItems.Add(m); } } HeadMenu.DropDownItems.Add(menu); } return(new ToolStripItem[] { HeadMenu }); }
private IEnumerable <ToolStripItem> OnCreateMenu() { HeadMenu = new ToolStripMenuItem(AppConfig.Name, DefaultIcon.ToBitmap()); HeadMenu.DropDownItems.AddRange( new ToolStripMenuItem[] { NewSubMenu("Open Jira", Properties.Resources.environment_view.ToBitmap(), new ToolStripMenuItem[] { NewMenu("Open Jira [ Ctrl + Shift + J ]", Properties.Resources.environment.ToBitmap(), JIRA.Jira.OpenJira), NewMenu("Open SIRE", Properties.Resources.environment.ToBitmap(), JIRA.Jira.OpenSIRE), NewMenu("Open SIRP", Properties.Resources.environment.ToBitmap(), JIRA.Jira.OpenSIRP), NewMenu("Open SIRN", Properties.Resources.environment.ToBitmap(), JIRA.Jira.OpenSIRN) }), NewSubMenu("GCBA VPN", Properties.Resources.node.ToBitmap(), new ToolStripMenuItem[] { NewMenu("Open All", Properties.Resources.node.ToBitmap(), GCBA.VPNConnector.OpenAll), NewMenu("Close All", Properties.Resources.node_delete.ToBitmap(), GCBA.VPNConnector.CloseAll) }), NewSubMenu("GCBA Tools", Properties.Resources.briefcase.ToBitmap(), new ToolStripMenuItem[] { NewMenu("Obtener Claves", Properties.Resources.keys.ToBitmap(), GCBA.GenerarClaves.OpenWin) }) } ); // HOTKEYS Global.RegisterHotKey(Keys.J | Keys.Control | Keys.Shift, (k) => { JIRA.Jira.OpenJira(null, null); }); return(new ToolStripItem[] { HeadMenu }); }
private IEnumerable <ToolStripItem> OnCreateMenu() { RefreshConfig(); HeadMenu = new ToolStripMenuItem(AppConfig.Name, DefaultIcon.ToBitmap()); foreach (var link in EasyOpenConfig.Items) { HeadMenu.DropDownItems.Add(link.GetMenu()); } /* * var add = new ToolStripMenuItem("Agregar", DefaultIcon.ToBitmap()); * add.Click += OnAddClick; * HeadMenu.DropDownItems.Insert(0, add); * HeadMenu.DropDownItems.Insert(1, new ToolStripSeparator()); */ return(new ToolStripItem[] { HeadMenu }); }
private IEnumerable <System.Windows.Forms.ToolStripItem> OnCreateMenu() { RefreshConfig(); HeadMenu = new ToolStripMenuItem(AppConfig.Name, DefaultIcon.ToBitmap()); foreach (var link in Config.Task) { if (!link.IsRunning) { link.Start(); } HeadMenu.DropDownItems.Add(link.GetMenu()); } return(new ToolStripItem[] { HeadMenu }); }
private IEnumerable <ToolStripItem> OnCreateMenu() { HeadMenu = new ToolStripMenuItem(AppConfig.Name, DefaultIcon.ToBitmap()); var factory = new BLL.Service(); HeadMenu.DropDownItems.AddRange( new ToolStripItem[] { new ToolStripMenuItem("Agregar Movimiento", Properties.Resources.book_blue_add.ToBitmap(), factory.Add), new ToolStripMenuItem("Movimientos", Properties.Resources.book_blue_view.ToBitmap(), factory.VerMovimientos), new ToolStripSeparator(), new ToolStripMenuItem("Ahorros", Properties.Resources.money.ToBitmap(), factory.Ahorros), new ToolStripSeparator(), new ToolStripMenuItem("Ver Mes (Excel)", Properties.Resources.book_open.ToBitmap(), factory.VerUltimoMesExcel), new ToolStripMenuItem("Ver Ultimo Año (Excel)", Properties.Resources.book_open.ToBitmap(), factory.VerUltimoAnioExcel), new ToolStripMenuItem("Ver Todas Cuentas (Excel)", Properties.Resources.book_open.ToBitmap(), factory.VerTodoExcel), new ToolStripSeparator(), new ToolStripMenuItem("Configuración", Properties.Resources.creditcards.ToBitmap(), factory.OpenConfig), } ); return(new ToolStripItem[] { HeadMenu }); }