protected void UpdateLastSelectedWeather()
        {
            int index = BaseData.FindIndex(item => item.Name == curName);

            //这种情况只能是curName为空的情况
            if (index == -1)
            {
                return;
            }

            BaseData[index].WorkConditions = SelectedItems.ToList();
        }
Exemplo n.º 2
0
        protected void UpdateLastSelectedFitData()
        {
            int index = BaseData.FindIndex(item => item.Type == curType);

            //这种情况只能是FitDataCollectionsz中没有保存相应的type的数据
            if (index == -1)
            {
                BaseData.Add(new FitDataCollection
                {
                    Type     = curType,
                    FitDatas = SelectedItems.ToList()
                });
            }
            else
            {
                BaseData[index].FitDatas = SelectedItems.ToList();
            }
        }