/// <summary>Die aktuellen Punktnummern und Codes auslesen</summary> public void readCuDatas() { List <String> pointnumbers = new List <String>(); List <String> codes = new List <String>(); if (points.HasPunkte) { pointnumbers = points.getDestinctPointnumbers(); codes = points.getDestinctCodes(); btnChangeCode.Enabled = true; btnPktChangeCode.Enabled = true; } else if (stpks.HasMessdaten) { pointnumbers = stpks.getDestinctPointnumbers(); codes = stpks.getDestinctCodes(); btnChangeCode.Enabled = true; btnPktChangeCode.Enabled = true; } else { btnChangeCode.Enabled = false; btnPktChangeCode.Enabled = false; } cbPunktnummer.Items.Clear(); cbPunktnummer.Items.AddRange(pointnumbers.ToArray()); cbCodeNew.Items.Clear(); cbCodeNew.Items.AddRange(codes.ToArray()); cbCodeOld.Items.Clear(); cbCodeOld.Items.AddRange(codes.ToArray()); cbCodePKTNeu.Items.Clear(); cbCodePKTNeu.Items.AddRange(codes.ToArray()); }
/// <summary>Die aktuellen Punktnummern und Codes auslesen</summary> public void readCuDatas() { if ((cuMeasures != null) && (cuMeasures.HasMessdaten)) { List <String> pointnumbers = new List <String>(); cbPunktnummer.Enabled = true; tbNewId.Enabled = true; pointnumbers = cuMeasures.getDestinctPointnumbers(); btnPktChangeID.Enabled = true; cbPunktnummer.Items.Clear(); cbPunktnummer.Items.AddRange(pointnumbers.ToArray()); } else { cbPunktnummer.Enabled = false; tbNewId.Enabled = false; btnPktChangeID.Enabled = false; } }