using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace NetMonitorCliend { public partial class Netzmonitor : Form { private ServiceControl sc; public Netzmonitor() { InitializeComponent(); this.serviceController1.ServiceName = "NetMonitorServer"; this.sc = new ServiceControl(this.serviceController1); } private void trayIcon_MouseDoubleClick(object sender, MouseEventArgs e) { this.WindowState = System.Windows.Forms.FormWindowState.Normal; } private void homeToolStripMenuItem_Click(object sender, EventArgs e) { this.sc.setNetworkAuto(); } private void fhgToolStripMenuItem_Click(object sender, EventArgs e) { this.sc.setNetworkIp("129.26.164.16","255.255.248.0","129.26.160.1"); this.sc.setNetworkDNS("129.26.165.177"); this.sc.setNetworkWINS("129.26.165.167"); } } }