Метод | Описание | |
---|---|---|
GetAsDictionary ( ) : GraphicsObject>.Dictionary |
When called will return a reference to the dictionary it uses
|
|
GetAsList ( ) : List |
When called wil return the dictionary in a List format of its values to allow iteration.
|
|
GetObjectWithID ( int id ) : |
Returns the GraphicsObject with the given ID if no object with this ID exists then it returns null
|
|
GraphicsModel ( ) : System |
Default Constructor that initializes the dictionary
|
|
Remove ( int id ) : System.Boolean |
Attempts to remove a GraphicsObject with the specified ID from the dictionary
|
|
Update ( |
Update takes a GraphicsObject as a parameter. If there is an object with the same ID we will update the existing object with the new info otherwise we add the object to our dictionary of object
|
public GetAsDictionary ( ) : GraphicsObject>.Dictionary |
||
Результат | GraphicsObject>.Dictionary |
public GetObjectWithID ( int id ) : |
||
id | int | the ID of the GraphicsObject |
Результат |
public Remove ( int id ) : System.Boolean | ||
id | int | the unique ID of the Graphics object to be removed. |
Результат | System.Boolean |
public Update ( |
||
obj | The object that needs to be updated | |
Результат | void |