Beispiel #1
0
        void Chain()
        {
            var uidList = GetFlyContentBeanList()
                          .Where(b => b.isSelected)
                          .Select(b => b.uid)
                          .ToList();

            var servList = settings
                           .GetAllServersList()
                           .Where(s => uidList.Contains(s.GetCoreStates().GetUid()))
                           .ToList();

            var package = settings
                          .GetPackageList()
                          .FirstOrDefault(p => p.name == tboxName.Text);


            var newUid = settings.Chain(servList, package?.uid, tboxName.Text);

            if (package != null && !string.IsNullOrEmpty(newUid))
            {
                package.uid = newUid;
                settings.SavePackage(package);
            }
        }