using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Venus_RT { internal class RtApplication : ApplicationContext { private NotifyIcon _notifyIcon = new NotifyIcon(); public RtApplication() { MenuItem configMenuItem = new MenuItem(string.Format("Login RT Server(&L)"), new EventHandler(ConfirmLogin1)); MenuItem exitMenuItem = new MenuItem(string.Format("Exit RT Server(&Q)"), new EventHandler(ConfirmExit)); _notifyIcon.ContextMenu = new ContextMenu(new MenuItem[] { configMenuItem, exitMenuItem }); _notifyIcon.Visible = true; _notifyIcon.Text = "Venus_RT"; _notifyIcon.Icon = new System.Drawing.Icon("logos/venus.ico"); } private void ConfirmLogin1(object sender, EventArgs e) { } private void ConfirmExit(object sender, EventArgs e) { Environment.Exit(0); } } }