Exemplo n.º 1
0
        public DiveType(int no, DivePosition position, DiveHeight height)
        {
            if (_dd == null)
                LoadDDTable();

            _no = no;
            Position = position;
            Height = height;
        }
Exemplo n.º 2
0
        public DiveType(int no, DivePosition position, DiveHeight height)
        {
            if (_dd == null)
            {
                LoadDDTable();
            }

            _no      = no;
            Position = position;
            Height   = height;
        }
Exemplo n.º 3
0
 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;
     }
 }