ATMLCommonLibrary.controls.ResourceControl.ControlsToData C# (CSharp) Method

ControlsToData() private method

private ControlsToData ( ) : void
return void
        private void ControlsToData()
        {
            base.ControlsToData();
            if (Item != null && Item is Resource)
            {
                var resource = Item as Resource;
                resource.index = edtIndex.GetValue<int>();
                if (resource.Interface == null)
                    resource.Interface = new Interface();
                resource.Interface.Ports = portListControl.Ports;
                Resource rc = triggerListControl.Resource;
                resource.Triggers = rc.Triggers;
            }
        }