private void PopulateCell(int p_GridRow, int p_GridCol, System.Reflection.PropertyInfo p_PropInfo, Cells.Editors.EditorBase p_Editor, object p_Object) { grid[p_GridRow, p_GridCol] = new Cells.Cell(p_PropInfo.GetValue(p_Object, null)); grid[p_GridRow, p_GridCol].Editor = p_Editor; Cells.Controllers.BindProperty l_Bind = new Cells.Controllers.BindProperty(p_PropInfo, p_Object); grid[p_GridRow, p_GridCol].AddController(l_Bind); Cells.Controllers.CustomEvents l_CustomEvents = new Cells.Controllers.CustomEvents(); l_CustomEvents.ValueChanged += new EventHandler(Grid_ValueChanged); grid[p_GridRow, p_GridCol].AddController(l_CustomEvents); }
private void PopulateCell(int p_GridRow, int p_GridCol, System.Reflection.PropertyInfo p_PropInfo, Cells.Editors.EditorBase p_Editor, object p_Object) { grid[p_GridRow, p_GridCol] = new Cells.Cell(p_PropInfo.GetValue(p_Object,null)); grid[p_GridRow, p_GridCol].Editor = p_Editor; Cells.Controllers.BindProperty l_Bind = new Cells.Controllers.BindProperty(p_PropInfo, p_Object); grid[p_GridRow, p_GridCol].AddController(l_Bind); Cells.Controllers.CustomEvents l_CustomEvents = new Cells.Controllers.CustomEvents(); l_CustomEvents.ValueChanged += new EventHandler(Grid_ValueChanged); grid[p_GridRow, p_GridCol].AddController(l_CustomEvents); }