Exemplo n.º 1
0
        public SelCylinderPalletSolution(Document document, CylinderPalletAnalysis analysis, CylinderPalletSolution sol)
            : base(document)
        {
            _analysis = analysis;
            _analysis.AddDependancy(this);

            _solution = sol;
            Name      = sol.Title;
        }
Exemplo n.º 2
0
        public int CompareTo(object obj)
        {
            CylinderPalletSolution sol = (CylinderPalletSolution)obj;

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