private void buttonUpload_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBoxNicAdapter.Text) || string.IsNullOrEmpty(textBoxIPAdd.Text) || string.IsNullOrEmpty(textBoxLCIP.Text) || string.IsNullOrEmpty(comboBoxLCFirm.Text)) { MessageBox.Show("Please make sure the following fields are filled in: \n\t* Network Index\n\t* Your IP Address\n\t* LC Ip Address\n\t*LC Firmware", "Warning"); return; } else { NetworkManagement setIp = new NetworkManagement(); setIp.setIP(comboBoxNicAdapter.Text, textBoxIPAdd.Text, "255.255.255.0"); string userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); string subFolders = @"Box Sync\Tna\TnA Configs\Programs\LC prog\Firmware\"; var path = Path.Combine(userProfile, subFolders, comboBoxLCFirm.Text); UdpClient udp = new UdpClient(); udp.Connect(textBoxLCIP.Text, 69); Byte[] sdata = Encoding.ASCII.GetBytes(path); udp.Send(sdata, sdata.Length); udp.Close(); var dhcp = new NetworkManagement(); dhcp.setDHCP(comboBoxNicAdapter.Text); } }
private void buttonConfigureGateway_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBoxIndex.Text) || string.IsNullOrEmpty(comboBoxSelectSite.Text) || string.IsNullOrEmpty(comboBoxGWArea.Text)) { MessageBox.Show("Please make sure the following area are filled in: \n\n* Network Adapter\n* Site\n* GateWay Area", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } else { Cursor = Cursors.WaitCursor; int index; index = int.Parse(textBoxIndex.Text); NetworkManagement setIp = new NetworkManagement(); setIp.setIP(index, "100.100.100.103", "255.255.255.0"); Telnet(); var dhcp = new NetworkManagement(); dhcp.setDHCP(); Cursor = Cursors.Default; } }
private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBoxNicAdapter.Text) || string.IsNullOrEmpty(textBoxIPAdd.Text) || string.IsNullOrEmpty(textBoxLCIP.Text) || string.IsNullOrEmpty(comboBoxLCFirm.Text)) { MessageBox.Show("Please make sure the following fields are filled in: \n\t* Network Index\n\t* Your IP Address\n\t* LC Ip Address\n\t*LC Firmware", "Warning"); return; } else { NetworkManagement setIp = new NetworkManagement(); setIp.setIP(comboBoxNicAdapter.Text, textBoxIPAdd.Text, "255.255.255.0"); ProcessStartInfo startLC = new ProcessStartInfo("iexplore.exe", textBoxLCIP.Text + "/mpfsupload"); Process.Start(startLC); var dhcp = new NetworkManagement(); dhcp.setDHCP(comboBoxNicAdapter.Text); } }
private void sagemConfigureToolStripMenuItem_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBoxNICAdapter.Text)) { MessageBox.Show("Please select a Network Adapter.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } else { NetworkManagement setIp = new NetworkManagement(); setIp.setIP(comboBoxNICAdapter.Text, "134.1.32.213", "255.255.255.0"); var path = new ProgramFinder(); path.ProgramStarter(@"Box Sync\Tna\TnA Configs\Programs\Bio-reader\BESBiometrics\Program\MA_Tools_3.4.4\MATM_Express\MATerminalManagement.exe"); var dhcp = new NetworkManagement(); dhcp.setDHCP(comboBoxNICAdapter.Text); } }
private void buttonConfigureGateway_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBoxNICAdapter.Text) || string.IsNullOrEmpty(comboBoxSelectSite.Text) || string.IsNullOrEmpty(comboBoxGWArea.Text)) { MessageBox.Show("Please make sure the following area are filled in: \n\n* Network Adapter\n* Site\n* GateWay Area", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } else { Cursor = Cursors.WaitCursor; NetworkManagement setIP = new NetworkManagement(); setIP.setIP(comboBoxNICAdapter.Text, "100.100.100.103", "255.255.255.0"); CS.Class.Telnet tel = new CS.Class.Telnet(); tel.Gateway(comboBoxRegion.Text, comboBoxSelectSite.Text, comboBoxGWArea.Text); NetworkManagement setDHCP = new NetworkManagement(); setDHCP.setDHCP(comboBoxNICAdapter.Text); Cursor = Cursors.Default; } }