public void SetMode() { if (Bound.Operations_list.Count < 1) { return; } List <Operation> buf_s = new List <Operation>(); List <Operation> buf_n = new List <Operation>(); Splitter_sold_out(Bound.Operations_list, out buf_s, out buf_n); int counter = 0; if (buf_s.Count > 0) { Bound copy_s = Bound.Copy(); counter += (int)SeeHistory.History; copy_s.Operations_list = buf_s; Bound_sold = new Bound_sold(copy_s); } if (buf_n.Count > 0) { Bound copy_n = Bound.Copy(); counter += (int)SeeHistory.NoHistrory; copy_n.Operations_list = buf_n; Bound_now = new Bound_now(copy_n); } Avalibale_mode = (SeeHistory)counter; }
public int CompareTo(Bound_now other) { return(Profit_perc.CompareTo(other.Profit_perc)); }