C# Class EventManagerPro.ViewModels.EventViewModel

EventViewModel class to be used in EventView as a DataContext.
Inheritance: BaseViewModel
ファイルを表示 Open project: sagittaros/EventManagerModel Class Usage Examples

Public Methods

Method 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 method

Adds an empty SubEvent into the list.
public AddNewSubEvent ( ) : void
return void

AddWarningMessage() public method

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.
return void

ClearAllSubEvents() public method

Clears all SubEvents in the list.
public ClearAllSubEvents ( ) : void
return void

DeleteBudgetItem() public method

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

DeleteSubEvent() public method

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

EventViewModel() public method

Constructor
public EventViewModel ( ) : System
return System

RemoveWarningMessage() public method

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

ResetBudgetForm() public method

Resets the BudgetItem in the form.
public ResetBudgetForm ( ) : void
return void

Save() public method

Saves the current Event information to the database.
public Save ( ) : bool
return bool

SaveBudgetItem() public method

Saves the current BudgetItem in the form.
public SaveBudgetItem ( ) : void
return void

SetActiveBudgetItem() public method

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

UnregisterGuest() public method

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

UpdateBudgetUI() public method

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

UpdateCapacityUI() public method

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