C# Класс ForumClientConsole.ClientConsole

Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

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

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

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

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

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

This method is called when controller invoked its OnUpdate event
public controller_OnUpdateFromServer ( Post p ) : void
p ForumShared.SharedDataTypes.Post
Результат void

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

Must to be called when quiting console
public freeConsole ( ) : void
Результат void

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

Menu method
public startMenu ( ) : int
Результат int