Class IsPublic
A toggle view command that toggles the specified item between being public and private to the logged in user
Inheritance
System.Object
IsPublic
Implements
System.IDisposable
System.Windows.Input.ICommand
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class IsPublic : SingleToggleCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
IsPublic(IModelLayoutDisplayer, Func<IUserSpecificPublicToggle>)
Creates a new IsPublic command
Declaration
public IsPublic(IModelLayoutDisplayer host, Func<IUserSpecificPublicToggle> getitem)
Parameters
| Type | Name | Description |
|---|---|---|
| IModelLayoutDisplayer | host | The owning host context for this command |
| System.Func<IUserSpecificPublicToggle> | getitem | A function that returns an item that can be toggled between private and public |
Properties
Description
Declaration
public override string Description { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
IconID
Declaration
public override Guid IconID { get; }
Property Value
| Type | Description |
|---|---|
| System.Guid |
Overrides
IncludeInSimple
Declaration
public override bool IncludeInSimple { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
OverlayIconID
Declaration
public override Guid? OverlayIconID { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Guid> |
Overrides
SubscribeToLayoutChange
Declaration
public override bool SubscribeToLayoutChange { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Title
Declaration
public override string Title { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
ToolTip
Declaration
public override string ToolTip { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Methods
InternalCanExecute(Object)
Can be executed as long as there is an item that implements IUserSpecificPublicToggle that can be toggled
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | parameter | The command parameter |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if there is an item that implements IUserSpecificPublicToggle that can be toggled |
Overrides
Implements
System.IDisposable
System.Windows.Input.ICommand