C# Class EventManagerPro.ViewModels.EventViewModel

EventViewModel class to be used in EventView as a DataContext.
Inheritance: BaseViewModel
Afficher le fichier Open project: sagittaros/EventManagerModel Class Usage Examples

Méthodes publiques

Méthode Description
AddNewSubEvent ( ) : void

Adds an empty SubEvent into the list.

AddWarningMessage ( string key, string message ) : void

Adds a warning message to be displayed onto the View's notice TextBox.

ClearAllSubEvents ( ) : void

Clears all SubEvents in the list.

DeleteBudgetItem ( BudgetItemModel b ) : void

Deletes the BudgetItem.

DeleteSubEvent ( SubEventModel s ) : void

Deletes the specified SubEvent from the list.

EventViewModel ( ) : System

Constructor

RemoveWarningMessage ( string key ) : void

Removes the warning message to be displayed onto the View's notice TextBox.

ResetBudgetForm ( ) : void

Resets the BudgetItem in the form.

Save ( ) : bool

Saves the current Event information to the database.

SaveBudgetItem ( ) : void

Saves the current BudgetItem in the form.

SetActiveBudgetItem ( BudgetItemModel b ) : void

Sets the active BudgetItem to be edited in the form.

UnregisterGuest ( string matricID ) : bool

Unregisters the guest from the guest list.

UpdateBudgetUI ( ) : void

Updates the UI for the 'Budget' tab in the View.

UpdateCapacityUI ( ) : void

Updates the UI for the 'Guest List' tab in the View.

Method Details

AddNewSubEvent() public méthode

Adds an empty SubEvent into the list.
public AddNewSubEvent ( ) : void
Résultat void

AddWarningMessage() public méthode

Adds a warning message to be displayed onto the View's notice TextBox.
public AddWarningMessage ( string key, string message ) : void
key string Unique key.
message string Message to be displayed.
Résultat void

ClearAllSubEvents() public méthode

Clears all SubEvents in the list.
public ClearAllSubEvents ( ) : void
Résultat void

DeleteBudgetItem() public méthode

Deletes the BudgetItem.
public DeleteBudgetItem ( BudgetItemModel b ) : void
b EventManagerPro.Models.BudgetItemModel BudgetItemModel object to be deleted.
Résultat void

DeleteSubEvent() public méthode

Deletes the specified SubEvent from the list.
public DeleteSubEvent ( SubEventModel s ) : void
s EventManagerPro.Models.SubEventModel SubEventModel object to be delted.
Résultat void

EventViewModel() public méthode

Constructor
public EventViewModel ( ) : System
Résultat System

RemoveWarningMessage() public méthode

Removes the warning message to be displayed onto the View's notice TextBox.
public RemoveWarningMessage ( string key ) : void
key string Unique key.
Résultat void

ResetBudgetForm() public méthode

Resets the BudgetItem in the form.
public ResetBudgetForm ( ) : void
Résultat void

Save() public méthode

Saves the current Event information to the database.
public Save ( ) : bool
Résultat bool

SaveBudgetItem() public méthode

Saves the current BudgetItem in the form.
public SaveBudgetItem ( ) : void
Résultat void

SetActiveBudgetItem() public méthode

Sets the active BudgetItem to be edited in the form.
public SetActiveBudgetItem ( BudgetItemModel b ) : void
b EventManagerPro.Models.BudgetItemModel BudgetItemModel object to be edited.
Résultat void

UnregisterGuest() public méthode

Unregisters the guest from the guest list.
public UnregisterGuest ( string matricID ) : bool
matricID string Matric ID of the guest.
Résultat bool

UpdateBudgetUI() public méthode

Updates the UI for the 'Budget' tab in the View.
public UpdateBudgetUI ( ) : void
Résultat void

UpdateCapacityUI() public méthode

Updates the UI for the 'Guest List' tab in the View.
public UpdateCapacityUI ( ) : void
Résultat void