Esempio n. 1
0
 private void FrmWorkPointRegistry_Load(object sender, EventArgs e)
 {
     VehIC_WF.Device.HardwareInfo info = new VehIC_WF.Device.HardwareInfo();
     this.textBox4.Text = info.GetHostIPAddress();
     this.textBox5.Text = info.GetMacAddress();
     VehIC_WF.CommonService.CommonService service = new VehIC_WF.CommonService.CommonService();
     if (!FrmMain.Debug)
     {
         service.Url = "http://" + FrmMain.localinfo.ServerUrl + "/VehIC_WS/CommonService.asmx";
     }
     string[] distinctAvailableWorkPointType = service.GetDistinctAvailableWorkPointType();
     if (distinctAvailableWorkPointType != null)
     {
         int num;
         for (num = 0; num < distinctAvailableWorkPointType.Length; num++)
         {
             this.workpointtypes.Add(new KeyValueItem(distinctAvailableWorkPointType[num]));
         }
         for (num = 0; num < distinctAvailableWorkPointType.Length; num++)
         {
             this.comboBox2.Items.Add(this.workpointtypes[num].Value);
         }
     }
 }