C# Класс EventManagerPro.ViewModels.EventViewModel

EventViewModel class to be used in EventView as a DataContext.
Наследование: BaseViewModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddNewSubEvent() публичный Метод

Adds an empty SubEvent into the list.
public AddNewSubEvent ( ) : void
Результат void

AddWarningMessage() публичный Метод

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.
Результат void

ClearAllSubEvents() публичный Метод

Clears all SubEvents in the list.
public ClearAllSubEvents ( ) : void
Результат void

DeleteBudgetItem() публичный Метод

Deletes the BudgetItem.
public DeleteBudgetItem ( BudgetItemModel b ) : void
b EventManagerPro.Models.BudgetItemModel BudgetItemModel object to be deleted.
Результат void

DeleteSubEvent() публичный Метод

Deletes the specified SubEvent from the list.
public DeleteSubEvent ( SubEventModel s ) : void
s EventManagerPro.Models.SubEventModel SubEventModel object to be delted.
Результат void

EventViewModel() публичный Метод

Constructor
public EventViewModel ( ) : System
Результат System

RemoveWarningMessage() публичный Метод

Removes the warning message to be displayed onto the View's notice TextBox.
public RemoveWarningMessage ( string key ) : void
key string Unique key.
Результат void

ResetBudgetForm() публичный Метод

Resets the BudgetItem in the form.
public ResetBudgetForm ( ) : void
Результат void

Save() публичный Метод

Saves the current Event information to the database.
public Save ( ) : bool
Результат bool

SaveBudgetItem() публичный Метод

Saves the current BudgetItem in the form.
public SaveBudgetItem ( ) : void
Результат void

SetActiveBudgetItem() публичный Метод

Sets the active BudgetItem to be edited in the form.
public SetActiveBudgetItem ( BudgetItemModel b ) : void
b EventManagerPro.Models.BudgetItemModel BudgetItemModel object to be edited.
Результат void

UnregisterGuest() публичный Метод

Unregisters the guest from the guest list.
public UnregisterGuest ( string matricID ) : bool
matricID string Matric ID of the guest.
Результат bool

UpdateBudgetUI() публичный Метод

Updates the UI for the 'Budget' tab in the View.
public UpdateBudgetUI ( ) : void
Результат void

UpdateCapacityUI() публичный Метод

Updates the UI for the 'Guest List' tab in the View.
public UpdateCapacityUI ( ) : void
Результат void