ATMLCommonLibrary.controls.switching.SwitchRelayForm.DataToControls C# (CSharp) Method

DataToControls() protected method

protected DataToControls ( ) : void
return void
        protected void DataToControls()
        {
            edtName.Value = switchRelaySetting.name;
            if (switchRelaySetting.RelayConnection != null)
            {
                foreach (SwitchRelaySettingRelayConnection connection in switchRelaySetting.RelayConnection)
                {
                    DataGridViewRow row = new DataGridViewRow();
                    row.CreateCells(dgRelayConnections, connection.from, connection.to);
                    row.Tag = connection;
                    dgRelayConnections.Rows.Add(row);
                }
            }
        }