netmonitor/NetMonitorTray/Program.cs

23 lines
592 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace NetMonitorTray {
class Program {
[STAThread]
static void Main(string[] args) {
try {
Controller.Tray t = new Controller.Tray();
t.execute();
Application.Run();
} catch(Exception e) {
MessageBox.Show("Fehler: " + e.Message + "\nStack: " + e.StackTrace, "Exception: " + e.GetType().ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}