/// <summary> /// Set the value from a string or raw data. Does not send it to ElectroCraft drive! /// Note the default on raw data is to store it without modification. /// </summary> /// <returns> /// true - string/raw data valid, value set /// false - string/raw data screwed up somehow, value unchanged /// </returns> public bool SetIn(string val) { bool r = false; DICnvtrBase cv = GetCv(); if (cv != null) { r = cv.ConvertIn(val, ref _rd); } // implied else is do nothing return(r); }
public bool SetIn(string val, DaIBase src) { bool r = false; DICnvtrBase cv = GetCv(); if (cv != null) { uint myrd; src.GetOut(out myrd); r = cv.ConvertIn(val, ref myrd); src.SetIn(myrd); } // implied else is do nothing return(r); }