protected override void ControlsToData() { if (_bus == null) { _bus = new LXI(); } base.ControlsToData(); LXI lxi = (LXI)_bus; lxi.LXIVersion = edtLXIVersion.GetValue <string>(); lxi.@class = (LXIClass)Enum.Parse(typeof(LXIClass), (String)cmbLXIClass.SelectedItem); }
protected override void DataToControls() { if (_bus == null) { return; } base.DataToControls(); LXI lxi = (LXI)_bus; edtLXIVersion.Value = lxi.LXIVersion; cmbLXIClass.SelectedItem = Enum.GetName(typeof(LXIClass), lxi.@class); }