private Parameter GetParameterForRow(int iRow) { GridCell cell = grid.GetCellInfo(iRow, 1); DtsBaseDesigner varDesigner = (DtsBaseDesigner)cell.Tag; Parameter parameter = (Parameter)varDesigner.GetType().InvokeMember("Parameter", BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.FlattenHierarchy | BindingFlags.Instance, null, varDesigner, null); return(parameter); }
private static Variable GetVariableForRow(int iRow) { GridCell cell = grid.GetCellInfo(iRow, 1); DtsBaseDesigner varDesigner = (DtsBaseDesigner)cell.Tag; Variable variable = (Variable)varDesigner.GetType().InvokeMember("Variable", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.GetProperty | System.Reflection.BindingFlags.FlattenHierarchy | System.Reflection.BindingFlags.Instance, null, varDesigner, null); return(variable); }