Lang nichts mehr passiert, refactoring ist geil
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
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();
|
||||
}
|
||||
/// <summary>
|
||||
/// User klickt auf den Eintrag Beenden
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
internal static void Click_Quit(object sender, EventArgs e)
|
||||
{
|
||||
tray.Dispose();
|
||||
Application.ExitThread();
|
||||
}
|
||||
/// <summary>
|
||||
/// User klick auf einen Eintrag Service Starten/Stoppen
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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;
|
||||
}*/
|
||||
}
|
||||
/// <summary>
|
||||
/// User klickt Doppelt auf das TrayIcon
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
internal static void Click_Tray(object sender, EventArgs e)
|
||||
{
|
||||
//Doppelklick auf das Trayicon
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
/// <summary>
|
||||
/// User klickt auf den Tray-Ballon
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
internal static void Click_Ballon(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
/// <summary>
|
||||
/// User klickt auf einen Eintrag Netzwerk
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
internal static void Click_Network(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
/// <summary>
|
||||
/// User klickt auf den Eintrag Öffnen
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
internal static void Click_Open(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user