public void AddParameter()
        {
            if (container == null)
            {
                return;
            }

            for (int i = paramList.Count - 1; i >= 0; i--)
            {
                parameterUIObject p = paramList[i];

                p = null;
            }

            paramList.Clear();

            for (int i = 0; i < container.FirstLevelParameterCount; i++)
            {
                parameterContainer pC = container.getParameterLevelOne(i);

                if (pC == null)
                {
                    continue;
                }

                paramList.Add(new parameterUIObject(pC));
            }

            UpdateContractUI();
        }
        public contractUIObject(contractContainer c, contractMission m)
        {
            container   = c;
            mission     = m;
            _showParams = true;
            _order      = null;

            _agencyLogo = container.RootAgent.Logo;
            _agencyName = container.RootAgent.Name;

            _difficulty = (int)container.Root.Prestige;
            _id         = container.ID;

            for (int i = 0; i < c.FirstLevelParameterCount; i++)
            {
                parameterContainer p = c.getParameterLevelOne(i);

                if (p == null)
                {
                    continue;
                }

                if (string.IsNullOrEmpty(p.Title))
                {
                    continue;
                }

                paramList.Add(new parameterUIObject(p));
            }
        }