예제 #1
0
 public void OnModelChanged(EnumModelType mt, EnumDataChange dc)
 {
     if (ModelChanged != null)
     {
         ModelChanged(this, new ModelChangeEvent(mt, dc));
     }
 }
예제 #2
0
파일: Bicycle.cs 프로젝트: tarishi3/MyBikes
 public Bicycle()
 {
     this.serialNo        = 0;
     this.RimType         = EnumRimType.Undefined;
     this.color           = EnumColor.Undefined;
     this.madeBy          = "Undefined";
     this.price           = 0.00;
     this.speed           = 0;
     this.groundClearance = 0.00;
     this.seatHeight      = 0.00;
     this.suspensionType  = EnumSusType.Not_Applicable;
     this.model           = EnumModelType.Undefined;
 }
예제 #3
0
파일: Bicycle.cs 프로젝트: tarishi3/MyBikes
 public Bicycle(int serNo, EnumRimType rimTyp, EnumColor col, string madeby, double price,
                int speed, double groundClr, double seatHgt, EnumSusType susType, EnumModelType model)
 {
     this.serialNo        = serNo;
     this.RimType         = rimTyp;
     this.color           = col;
     this.madeBy          = madeby;
     this.price           = price;
     this.speed           = speed;
     this.groundClearance = groundClr;
     this.seatHeight      = seatHgt;
     this.suspensionType  = susType;
     this.model           = model;
 }
예제 #4
0
 protected internal EnumAllProperty(EnumModelType declaringType)
     : base(declaringType, "All", null, null, null, true, declaringType, true, true, false, new Attribute[] { })
 {
 }
예제 #5
0
 public ModelChangeEvent(EnumModelType mt, EnumDataChange ct)
 {
     this.modelType  = mt;
     this.changeType = ct;
 }