using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using NetMonitorTray.Properties; using BlubbFish.Utils; namespace NetMonitorTray.Model { public class Tray : OwnModel { private bool serviceRun; private Tray() { this.init(); } private void init() { this.serviceRun = false; } internal Dictionary> getMenuNetwork() { Dictionary> ret = new Dictionary>(); ret.Add("network1", new Tuple("Netzwerk Home", null, true, false)); ret.Add("network2", new Tuple("Netzwerk Arbeit", null, true, false)); ret.Add("network3", new Tuple("Netzwerk Test", null, true, false)); return ret; } internal Dictionary> getMenuOpenVpnService() { Dictionary> ret = new Dictionary>(); ret.Add("StartService", new Tuple("Service Starten", Properties.Resources.MenuImagesServerConnect, !this.serviceRun, !this.serviceRun)); ret.Add("StopService", new Tuple("Service Stoppen", Properties.Resources.MenuImagesServerDisconnect, this.serviceRun, this.serviceRun)); return ret; } public void setService(bool run) { this.serviceRun = run; this.update(); } } }