public GenericMenuItem([NotNull] params Action<GenericMenuItem>[] clickActions) { ClickActions = new List<Action<GenericMenuItem>>(clickActions); IsEnabled = true; ClickCommand = new SimpleCommand(Click); }
/// <summary> /// Initializes a new instance of the <see cref="TabWorkspace" /> class. /// Initialisiert eine neue Instanz der <see cref="TabWorkspace" /> Klasse. /// </summary> /// <param name="title"> /// The title. /// </param> protected TabWorkspace([NotNull] string title) { _title = title; _canClose = true; CloseWorkspace = new SimpleCommand(obj => CanClose, obj => InvokeClose()); }