protected virtual void OnCustomizeAppearance(CustomizeAppearanceEventArgs args) { if (CustomizeAppearance != null) { CustomizeAppearance(this, args); } }
private void TreeListOnShowingEditor(object sender, CancelEventArgs cancelEventArgs) { var fieldName = _treeList.FocusedColumn.FieldName; var eventArgs = new CustomizeAppearanceEventArgs(fieldName, "ViewItem", new TreeListCancelEventArgsAppearanceAdapter(_treeList, cancelEventArgs), _treeList.FocusedObject); OnCustomizeAppearance(eventArgs); }
void LayoutManagerOnCustomizeAppearance(object sender, CustomizeAppearanceEventArgs customizeAppearanceEventArgs) { var modelDashboardViewItem = View.Model.Items.OfType <IModelDashboardViewItemEx>().FirstOrDefault(item => item.Id == customizeAppearanceEventArgs.Name); if (modelDashboardViewItem != null) { ((IAppearanceVisibility)customizeAppearanceEventArgs.Item).Visibility = modelDashboardViewItem.Visibility; } }
protected virtual void OnCustomizeAppearance(CustomizeAppearanceEventArgs e) { var handler = CustomizeAppearance; if (handler != null) { handler(this, e); } }
private void layoutManager_CustomizeAppearance(object sender, CustomizeAppearanceEventArgs e) { var layoutControlGroup = ((WinLayoutItemAppearanceAdapter)e.Item).Item as XafLayoutControlGroup; if (layoutControlGroup != null && layoutControlGroup.Model.ShowCaption.HasValue && layoutControlGroup.Model.ShowCaption.Value) { ApplyModel(layoutControlGroup); } }
public void RaiseCustomizeAppearance(CustomizeAppearanceEventArgs args) { CustomizeAppearance(this, args); }
protected virtual void OnCustomizeAppearance(string name, IAppearanceBase item, int rowHandle) { if (CustomizeAppearance != null) { CustomizeAppearanceEventArgs args = null; if (!IsAsyncServerMode()) { args = new CustomizeAppearanceEventArgs(name, item, DevExpress.ExpressApp.Win.Core.XtraGridUtils.GetRow((DevExpress.XtraGrid.Views.Base.ColumnView)gridView, rowHandle)); } else { if (!gridView.IsRowLoaded(rowHandle)) { return; } args = new CustomizeAppearanceEventArgs(args.Name, args.Item, rowHandle, new AsyncServerModeContextDescriptor((DevExpress.XtraGrid.Views.Base.ColumnView)gridView, CollectionSource.ObjectSpace, CollectionSource.ObjectTypeInfo.Type)); } CustomizeAppearance(this, args); } }
protected virtual void OnCustomizeAppearance(CustomizeAppearanceEventArgs args){ if (CustomizeAppearance != null){ CustomizeAppearance(this, args); } }