示例#1
0
        private void ItemDatabaseOnInitialReadDone(object sender, EventArgs e)
        {
            var itemsIDs = m_ItemDatabase.GetItemsIDs().ToList();

            CurveList
            .Select(x => (string)x.Tag)
            .Where(x => !itemsIDs.Contains(x))
            .ToList()
            .ForEach(RemoveItem);
        }
示例#2
0
 private static void AssertCurveListsSame(CurveList curveList1, CurveList curveList2)
 {
     CollectionAssert.AreEqual(curveList1.Select(curve => curve.Label.Text).ToArray(), curveList2.Select(curve => curve.Label.Text).ToArray());
     CollectionAssert.AreEqual(curveList1.Select(curve => curve.Color).ToArray(), curveList2.Select(curve => curve.Color).ToArray());
 }