ATMLCommonLibrary.controls.signal.SignalFunctionTypeControl.edtIn_TextChanged C# (CSharp) Method

edtIn_TextChanged() private method

private edtIn_TextChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void edtIn_TextChanged( object sender, EventArgs e )
        {
            //---------------------------------------------------//
            //--- Find "In" in data grid and set it's value ---//
            //---------------------------------------------------//
            foreach (DataGridViewRow row in signalAttributes.Rows)
            {
                if (row.IsNewRow)
                    continue;

                var name = row.Cells[0].Value as string;
                var type = row.Cells[1].Value as string;
                var value = row.Cells[2].Value as string;
                if ("In".Equals( name ))
                {
                    row.Cells[2].Value = edtIn.Text;
                    break;
                }
            }
        }