Example #1
0
        public SelHCylinderPalletSolution(Document document, HCylinderPalletAnalysis analysis, HCylinderPalletSolution sol)
            : base(document)
        {
            _analysis = analysis;
            _analysis.AddDependancy(this);

            _solution = sol;
            Name      = sol.Title;
        }
Example #2
0
        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);
            }
        }