/// <summary> /// Adds a new control to the list /// </summary> /// <param name="attributeName"></param> /// <param name="aliasLabel"></param> /// <param name="valueControl"></param> public void AddControl(string attributeName, ILabelPresentation aliasLabel, IEditorPresentation valueControl) { if (aliasLabel != null) { aliasLabel.Visible = false; } if (valueControl != null) { valueControl.Visible = false; } KeyValuePair <ILabelPresentation, IEditorPresentation> pair = new KeyValuePair <ILabelPresentation, IEditorPresentation>(aliasLabel, valueControl); KeyValuePair <string, KeyValuePair <ILabelPresentation, IEditorPresentation> > control = new KeyValuePair <string, KeyValuePair <ILabelPresentation, IEditorPresentation> >(attributeName, pair); mControlList.Add(control); }
/// <summary> /// Adds a new control to the list /// </summary> /// <param name="attributeName"></param> /// <param name="aliasLabel"></param> /// <param name="valueControl"></param> public void AddControl(string attributeName, ILabelPresentation aliasLabel, IEditorPresentation valueControl) { if (aliasLabel != null) aliasLabel.Visible = false; if (valueControl != null) valueControl.Visible = false; KeyValuePair<ILabelPresentation, IEditorPresentation> pair = new KeyValuePair<ILabelPresentation, IEditorPresentation>(aliasLabel, valueControl); KeyValuePair<string, KeyValuePair<ILabelPresentation, IEditorPresentation>> control = new KeyValuePair<string, KeyValuePair<ILabelPresentation, IEditorPresentation>>(attributeName, pair); mControlList.Add(control); }