Exemplo n.º 1
0
        public SearchTreeNodeHelper(SearchTreeNode srNode, CarType ctType)
        {
            this.SearchTreeNodeID = srNode.ID;
            this.ParentSearchTreeNodeID = srNode.ParentNodeID;
            this.Text = srNode.Name.Tex_Text;

            this.CarTypeID = ctType.ID;
            this.ModelID = ctType.TYP_MOD_ID;
        }
 protected string GetEngineVolume(CarType carType)
 {
     if (carType.EngineVolume.HasValue)
     {
         return Math.Round((decimal)carType.EngineVolume.Value / 1000m, 1).ToString("0.0");
     }
     else
     {
         return String.Empty;
     }
 }
Exemplo n.º 3
0
 partial void DeleteCarType(CarType instance);
Exemplo n.º 4
0
		private void detach_CarTypes(CarType entity)
		{
			this.SendPropertyChanging();
			entity.Model = null;
		}
Exemplo n.º 5
0
 partial void UpdateCarType(CarType instance);
Exemplo n.º 6
0
		private void attach_CarTypes(CarType entity)
		{
			this.SendPropertyChanging();
			entity.Model = this;
		}
Exemplo n.º 7
0
 partial void InsertCarType(CarType instance);