Пример #1
0
        public SelHCylinderPalletSolution(Document document, HCylinderPalletAnalysis analysis, HCylinderPalletSolution sol)
            : base(document)
        {
            _analysis = analysis;
            _analysis.AddDependancy(this);

            _solution = sol;
            ID.Name   = sol.Title;
        }
        public int CompareTo(object obj)
        {
            HCylinderPalletSolution sol = (HCylinderPalletSolution)obj;

            if (this.CylinderCount > sol.CylinderCount)
            {
                return(-1);
            }
            else if (this.CylinderCount == sol.CylinderCount)
            {
                return(0);
            }
            else
            {
                return(1);
            }
        }