public DiveType(int no, DivePosition position, DiveHeight height) { if (_dd == null) LoadDDTable(); _no = no; Position = position; Height = height; }
public DiveType(int no, DivePosition position, DiveHeight height) { if (_dd == null) { LoadDDTable(); } _no = no; Position = position; Height = height; }
public void SetPosition(string p) { switch(p) { case "A": this.Position = DivePosition.A; break; case "B": this.Position = DivePosition.B; break; case "C": this.Position = DivePosition.C; break; case "D": this.Position = DivePosition.D; break; default: break; } }