コード例 #1
0
 public GenericMenuItem([NotNull] params Action<GenericMenuItem>[] clickActions)
 {
     ClickActions = new List<Action<GenericMenuItem>>(clickActions);
     IsEnabled = true;
     ClickCommand = new SimpleCommand(Click);
 }
コード例 #2
0
 /// <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());
 }