public App() { notifyIcon = new NotifyIcon { Icon = new Icon($@"{Logger.ActivityLoggerPath}\icon.ico"), Text = "Activities", Visible = true, ContextMenuStrip = new ContextMenuStrip(), }; strips = new ToolStrips { RestartLogger = new ToolStripMenuItem("Restart", null, Restart), ExitLogger = new ToolStripMenuItem("Exit", null, Exit), StartFirebaseClient = new ToolStripMenuItem("Start Firebase Client", null, StartFirebaseClient), RestartFirebaseClient = new ToolStripMenuItem("Restart Firebase Client", null, RestartFirebaseClient), ExitFirebaseClient = new ToolStripMenuItem("Stop Firebase Client", null, ExitFirebaseClient), }; logger = new Logger(); logger.OnInitializedLogger += OnLoggerInitialized; logger.OnInitializedLoggerFailed += OnLoggerInitializedError; notifyIcon.Click += (sender, _) => ReloadNotifyIcon(); Task.Run(logger.InitializeLogger); }
private void InitToolStrips() { //ToolStrip commonToolStrip = SaveToolStrip(); //ToolStrips.Add(commonToolStrip); ToolStrip drawingToolStrip = DrawingToolStrip(); ToolStrips.Add(drawingToolStrip); }
private void InitToolStrips() { this.ToolStrips = new List <ToolStrip>(); var odontogramStrip = new ToolStrip(); var editOdontogram = new ToolStripButton(Properties.Resources.odonto.ToBitmap()); editOdontogram.ToolTipText = "Editar Odontograma"; editOdontogram.Click += OpenOdontogramEntryPage; odontogramStrip.Items.Add(editOdontogram); ToolStrips.Add(odontogramStrip); }