C# Class AcManager.Tools.AcObjectsNew.AcCommonObject

Inheritance: AcObjectNew
Show file Open project: gro-ove/actools Class Usage Examples

Public Properties

Property Type Description
FileAcManager IFileAcManager

Private Properties

Property Type Description
IsSeveralAllowed bool
OnImageChanged void

Public Methods

Method Description
AddError ( AcErrorType type ) : void
AddError ( IAcError error ) : void
CheckIfNew ( ) : void
ClearErrors ( ) : void
ClearErrors ( AcErrorCategory category ) : void
CloneAsync ( string id ) : Task
Delete ( ) : void
ErrorIf ( bool condition, AcErrorType type ) : void

Add error if condition is true, remove existing if exists otherwise.

HandleChangedFile ( string filename ) : bool
HasError ( AcErrorType type ) : bool
Load ( ) : void
Reload ( ) : void
RemoveError ( AcErrorType type ) : void
RemoveError ( IAcError error ) : void
Save ( ) : void
SortAffectingValueChanged ( ) : void
ViewInExplorer ( ) : void

Protected Methods

Method Description
AcCommonObject ( IFileAcManager manager, string id, bool enabled ) : System
GetLocation ( ) : string
InitializeLocations ( ) : void
InitializeLocationsOnce ( ) : void
LoadOrThrow ( ) : void
OnImageChangedValue ( string filename ) : void
Rename ( string newId ) : void
Toggle ( ) : void

Private Methods

Method Description
IsSeveralAllowed ( AcErrorType errorType ) : bool
OnImageChanged ( string propertyName ) : void

Method Details

AcCommonObject() protected method

protected AcCommonObject ( IFileAcManager manager, string id, bool enabled ) : System
manager IFileAcManager
id string
enabled bool
return System

AddError() public method

public AddError ( AcErrorType type ) : void
type AcErrorType
return void

AddError() public method

public AddError ( IAcError error ) : void
error IAcError
return void

CheckIfNew() public method

public CheckIfNew ( ) : void
return void

ClearErrors() public method

public ClearErrors ( ) : void
return void

ClearErrors() public method

public ClearErrors ( AcErrorCategory category ) : void
category AcErrorCategory
return void

CloneAsync() public method

public CloneAsync ( string id ) : Task
id string
return Task

Delete() public method

public Delete ( ) : void
return void

ErrorIf() public method

Add error if condition is true, remove existing if exists otherwise.
public ErrorIf ( bool condition, AcErrorType type ) : void
condition bool
type AcErrorType
return void

GetLocation() protected method

protected GetLocation ( ) : string
return string

HandleChangedFile() public method

public HandleChangedFile ( string filename ) : bool
filename string
return bool

HasError() public method

public HasError ( AcErrorType type ) : bool
type AcErrorType
return bool

InitializeLocations() protected method

protected InitializeLocations ( ) : void
return void

InitializeLocationsOnce() protected method

protected InitializeLocationsOnce ( ) : void
return void

Load() public final method

public final Load ( ) : void
return void

LoadOrThrow() protected abstract method

protected abstract LoadOrThrow ( ) : void
return void

OnImageChangedValue() protected method

protected OnImageChangedValue ( string filename ) : void
filename string
return void

Reload() public method

public Reload ( ) : void
return void

RemoveError() public method

public RemoveError ( AcErrorType type ) : void
type AcErrorType
return void

RemoveError() public method

public RemoveError ( IAcError error ) : void
error IAcError
return void

Rename() protected method

protected Rename ( string newId ) : void
newId string
return void

Save() public abstract method

public abstract Save ( ) : void
return void

SortAffectingValueChanged() public method

public SortAffectingValueChanged ( ) : void
return void

Toggle() protected method

protected Toggle ( ) : void
return void

ViewInExplorer() public method

public ViewInExplorer ( ) : void
return void

Property Details

FileAcManager public property

public IFileAcManager FileAcManager
return IFileAcManager