C# Class ForumClientConsole.ClientConsole

Afficher le fichier Open project: sagioto/forum Class Usage Examples

Méthodes publiques

Méthode Description
ClientConsole ( ) : System

Constructor

controller_OnUpdateFromServer ( Post p ) : void

This method is called when controller invoked its OnUpdate event

freeConsole ( ) : void

Must to be called when quiting console

startMenu ( ) : int

Menu method

Private Methods

Méthode Description
AddForum ( ) : void
AddModerator ( ) : void
Back ( ) : void
EditPost ( string command ) : void
FormatPostComponent ( string comp, int lineLength ) : string
GetSubforum ( string subforumname ) : void
GetTrimmedLine ( string str, int maxLength ) : string
InitConsole ( ) : void
ListSubForums ( ) : void
Login ( ) : void
Logout ( ) : void
Post ( ) : void
PrintCurrentLocation ( ) : void
PrintPostList ( Post subForumPosts ) : void
ReadPassword ( ) : string
Register ( ) : void
RemoveForum ( ) : void
RemoveModerator ( ) : void
RemovePost ( string command ) : void
ReplaceAdmin ( ) : void
ReplaceModerator ( ) : void
Reply ( ) : void
ShowReplies ( string command ) : void
SubForumReport ( string subforum ) : void
UserReport ( string username ) : void

Method Details

ClientConsole() public méthode

Constructor
public ClientConsole ( ) : System
Résultat System

controller_OnUpdateFromServer() public méthode

This method is called when controller invoked its OnUpdate event
public controller_OnUpdateFromServer ( Post p ) : void
p ForumShared.SharedDataTypes.Post
Résultat void

freeConsole() public méthode

Must to be called when quiting console
public freeConsole ( ) : void
Résultat void

startMenu() public méthode

Menu method
public startMenu ( ) : int
Résultat int