using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace NetMonitorTray.Controller { public class Tray { private static View.Tray tray; public Tray() { tray = new View.Tray(); } public void view() { Application.Run(); } /// /// User klickt auf den Eintrag Beenden /// /// /// internal static void Click_Quit(object sender, EventArgs e) { tray.Dispose(); Application.ExitThread(); } /// /// User klick auf einen Eintrag Service Starten/Stoppen /// /// /// internal static void Click_Service(object sender, EventArgs e) { throw new NotImplementedException(); //tray.showError("Fehler beim Starten/Stoppen von Service!"); /*switch (((ToolStripMenuItem)sender).Name) { case "StartService": tray.setService(true); break; case "StopService": tray.setService(false); break; }*/ } /// /// User klickt Doppelt auf das TrayIcon /// /// /// internal static void Click_Tray(object sender, EventArgs e) { //Doppelklick auf das Trayicon throw new NotImplementedException(); } /// /// User klickt auf den Tray-Ballon /// /// /// internal static void Click_Ballon(object sender, EventArgs e) { throw new NotImplementedException(); } /// /// User klickt auf einen Eintrag Netzwerk /// /// /// internal static void Click_Network(object sender, EventArgs e) { throw new NotImplementedException(); } /// /// User klickt auf den Eintrag Öffnen /// /// /// internal static void Click_Open(object sender, EventArgs e) { throw new NotImplementedException(); } } }