public virtual void Accept(UIItem uiItem) { if (strategy.Reject(uiItem)) { return; } dynamicScreenClass.Add(strategy.FieldName(uiItem), uiItem.GetType()); }
/// <summary> /// Output debug information about a UIItem /// </summary> public void OutputDebugInfo() { Report.Output( Report.Level.Debug, Resources.UIItemDebugMsg, UIItem.PrimaryIdentification, UIItem.Name, UIItem.GetType().BaseType.ToString()); }
/// <summary> /// Write the action (that was invoked) to output /// </summary> /// <param name="action">Name of action</param> protected void ReportAction(string action) { Report.Output( Report.Level.Action, Resources.UIItemActionMsg, action, FriendlyName, UIItem.PrimaryIdentification, UIItem.Name, UIItem.GetType().BaseType.ToString()); }
public virtual bool IsEditable(UIItem uiItem) { return(editableControls.IsAssignableFrom(uiItem.GetType())); }