Beispiel #1
0
 public Signal(string _kks = "", string _marka = "", string _kms = "", string _con = null, string _c = "", string _realkks = "", List <string> _zlk = null, List <string> _zlkforkey = null)
 {
     KKS           = _kks.Trim('_');
     RealKKS       = _realkks;
     Marka         = _marka;
     KMS           = _kms;
     Cabel         = _c;
     Connect       = _con;
     Zhilka        = new List <string>();
     Zhilka        = _zlk;
     ZlkforkeyList = new List <string>();
     ZlkforkeyList = _zlkforkey;
     if (KKS.Contains('_'))
     {
         if (ZlkforkeyList != null)
         {
             _key = Connect + "#" + ZlkforkeyList.Aggregate("", (a, b) => a + b + ",").Trim(',') + "#" + KKS.Substring(KKS.LastIndexOf('_') + 1).Trim();
         }
     }
     else
     {
         if (ZlkforkeyList != null)
         {
             _key = Connect + "#" + ZlkforkeyList.Aggregate("", (a, b) => a + b + ",").Trim(',') + "##";
         }
     }
     int i = 0;
 }
        private void PrzygotujWiazanie()
        {
            KKS produktZListy = mainWindow.lstKKS.SelectedItem as KKS;

            if (!czyNowyProdukt)
            {
                if (produktZListy != null)
                {
                    gridProdukt.DataContext = produktZListy;
                }
            }
            else
            {
                nowyProdukt             = new KKS("", "", "", "", "", "");
                gridProdukt.DataContext = nowyProdukt;
            }
        }