Esempio n. 1
0
 public ModelParam()
 {
     IsMain = false;
     Type = new ModelType();
     Name = "";
     LastUpdate = DateTime.Now;
 }
Esempio n. 2
0
 public UnitExtParam(int id, ModelType type, string name, DateTime lastupdate)
 {
     Id = id;
     Type = type;
     Name = name;
     LastUpdate = lastupdate;
 }
Esempio n. 3
0
 public ModelInfo()
 {
     ModelType = new ModelType();
     ModelMaker = new ModelMaker();
     Name = "";
     LastUpdate = DateTime.Now;
 }
Esempio n. 4
0
 public ModelParam(int id, ModelType type, string name, bool main, DateTime lastupdate)
 {
     Id = id;
     Type = type;
     Name = name;
     IsMain = main;
     LastUpdate = lastupdate;
 }
Esempio n. 5
0
 public ModelInfo(int id, ModelType type, ModelMaker maker, string name, IList<ModelFeature> properties, DateTime lastUpdate)
 {
     Id = id;
     ModelType = type;
     ModelMaker = maker;
     Name = name;
     _properties = (List<ModelFeature>) properties;
     LastUpdate = lastUpdate;
 }
Esempio n. 6
0
 public UnitExtParam()
 {
     Type = new ModelType();
     Name = "";
     LastUpdate = new DateTime();
 }
Esempio n. 7
0
        private void ShowParams(ModelType type)
        {
            ClearParams();

            _modelParams = (List<ModelParam>) _modelParamMapper.FindByType(type);
            _extParams = (List<UnitExtParam>) _unitParamMapper.FindByType(type);

            int index = 0;
            for (int i = 0; i < _modelParams.Count; ++i)
            {
                var pair = CreateFormPair(_modelParams[i].Name, i);
                _mainParams.Add(pair);
                LayoutRoot.Children.Add(pair.Key);
                LayoutRoot.Children.Add(pair.Value);
                index++;
            }

            for (int i = 0; i < _extParams.Count; ++i)
            {
                var pair = CreateFormPair(_extParams[i].Name, index);
                _addParams.Add(pair);
                LayoutRoot.Children.Add(pair.Key);
                LayoutRoot.Children.Add(pair.Value);
                index++;
            }
        }