Exemple #1
0
 public virtual void Accept(UIItem uiItem)
 {
     if (strategy.Reject(uiItem))
     {
         return;
     }
     dynamicScreenClass.Add(strategy.FieldName(uiItem), uiItem.GetType());
 }
Exemple #2
0
 /// <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());
 }
Exemple #3
0
 /// <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());
 }
Exemple #4
0
 public virtual bool IsEditable(UIItem uiItem)
 {
     return(editableControls.IsAssignableFrom(uiItem.GetType()));
 }