Example #1
0
 public SimVar(string _name, string _cname, EVENT ev, POSSIBLE_FAIL_TYPE ptype = POSSIBLE_FAIL_TYPE.COMPLETE)
 {
     eEvent       = ev;
     possibleType = ptype;
     isEvent      = true;
     sName        = _name;
     controlName  = _cname;
     rnd          = new Random();
 }
Example #2
0
 public SimVar(int id, string _name, string _cname, POSSIBLE_FAIL_TYPE ptype, string _unit = "Number")
 {
     //MessageBox.Show(id.ToString());
     eDef         = (DEFINITION)id;
     eRequest     = (REQUEST)id;
     isEvent      = false;
     sName        = _name;
     sUnits       = _unit;
     controlName  = _cname;
     possibleType = ptype;
 }