protected RepresentationButtonBase(IJournalDialog dialog, IRepresentationModel representationModel, string title, string iconStockId = null) { button = iconStockId == null ? new Button() : new Button(iconStockId); this.RepresentationModel = representationModel; this.dialog = dialog; button.Label = Title = title; button.Clicked += Button_Clicked; }
public PermissionControlledEditButton( IJournalDialog dialog, IRepresentationModel representationModel, IPermissionResult permission, bool customEdit = false) : base(dialog, representationModel) { this.permission = permission; _customEdit = customEdit; }
public PermissionControlledDeleteButton(IJournalDialog dialog, IRepresentationModel representationModel, IPermissionResult permission) : base(dialog, representationModel) { this.permission = permission; }
public RepresentationEditButton(IJournalDialog dialog, IRepresentationModel representationModel) : base(dialog, representationModel, "Изменить", "gtk-edit") { }
public RepresentationAddButton(IJournalDialog dialog, IRepresentationModel representationModel) : base(dialog, representationModel, "Добавить", "gtk-add") { }
public RepresentationDeleteButton(IJournalDialog dialog, IRepresentationModel representationModel) : base(dialog, representationModel, "Удалить", "gtk-remove") { }