public FormClient(Network network)
 {
     InitializeComponent();
     this.network = network;
     if(!isSpecialist) //Client:
     {
         pwrTxtBox.Hide();
         distanceTxtBox.Hide();
         timeTxtBox.Hide();
         label5.Hide();
         label6.Hide();
         label7.Hide();
         sendButton.Hide();
     }
     else //Specialist:
     {
         BComConnect.Hide();
         resetButton.Hide();
     }
 }
Exemple #2
0
 public Login()
 {
     InitializeComponent();
     network = new Network("127.0.0.1", 130);
     statusLabel.Text = network.status;
 }
 private void Form1_Load(object sender, EventArgs e)
 {
     Net = new Network();
     MonitoringSystem = new NetworkMonitoringSystem(Net);
 }