protected void UpdateSelectedElement(object controller, ElementEventArgs args)
 {
     // TODO: For some reason this event was being fired for either a null element or elementProperties was null.
     // It would be nice to figure out why this happened and correct the root problem so we can remove this if statement.
     if (args.Element != null && elementProperties != null)
     {
         elementProperties.UpdateFrom(args.Element);
         pgElement.Refresh();
     }
 }
Beispiel #2
0
 private static void UpdateSelectedElement(object controller, ElementEventArgs args)
 {
     elementProperties.UpdateFrom(args.Element);
     propGrid.Refresh();
 }
 protected void UpdateSelectedElement(object controller, ElementEventArgs args)
 {
     elementProperties.UpdateFrom(args.Element);
     pgElement.Refresh();
 }