示例#1
0
        public SelBoxCaseSolution(Document document, BoxCaseAnalysis analysis, BoxCaseSolution sol)
            : base(document)
        {
            _analysis = analysis;
            _analysis.AddDependancy(this);

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

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