protected override void ControlsToData() { if (_driver == null) _driver = new IVICOM(); base.ControlsToData(); var ivicom = _driver as IVICOM; if (ivicom != null) ivicom.progID = edtProgID.GetValue<string>(); }