Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public PermissionControlledEditButton(
     IJournalDialog dialog,
     IRepresentationModel representationModel,
     IPermissionResult permission,
     bool customEdit = false) : base(dialog, representationModel)
 {
     this.permission = permission;
     _customEdit     = customEdit;
 }
Ejemplo n.º 3
0
 public PermissionControlledDeleteButton(IJournalDialog dialog, IRepresentationModel representationModel, IPermissionResult permission) : base(dialog, representationModel)
 {
     this.permission = permission;
 }
Ejemplo n.º 4
0
 public RepresentationEditButton(IJournalDialog dialog, IRepresentationModel representationModel)
     : base(dialog, representationModel, "Изменить", "gtk-edit")
 {
 }
Ejemplo n.º 5
0
 public RepresentationAddButton(IJournalDialog dialog, IRepresentationModel representationModel)
     : base(dialog, representationModel, "Добавить", "gtk-add")
 {
 }
Ejemplo n.º 6
0
 public RepresentationDeleteButton(IJournalDialog dialog, IRepresentationModel representationModel)
     : base(dialog, representationModel, "Удалить", "gtk-remove")
 {
 }