>
}
}
}
void SetLetterToCell (string letter)
{(gameLogicManager.LetterIsValidForInserting (letter))
{. SetLetterToCell (letter);
}
}
void TryAddNextCellToWordSelection (int xCor, int yCor)
{logicCell=displayManager.GetLogicCellByCor (xCor, yCor);
(logicCell!=null amp; amp; previousLogicCell!=logicCell)
{= logicCell; (gameLogicManager.IsLogicCellValidForWordSelection (logicCell))
{. AddCellToWordSelection (logicCell);
}
}
}
void StopWordSelection ()
{. StopWordSelection ();
}
void ConfigureDisplaySettings ()
{= DisplayManager (GameLogicControls, SettingsManager.DisplaySettings, gameLogicManager.LogicCells); ();
}
void CancelSelectedWord ()
{. CancelSelectedWord ();
}
void AcceptLetter ()
{. AcceptLetter ();
}
void CancelLetter ()
{. CancelLetter ();
}
void AcceptWord ()
{. AcceptWord ();
}
void CreateGameRoom (String userName)
{= true;=userName; .CreateGameRoom () ;. ConnectToServer ( localhost , userName);
}
void ConnectToRoom (String ipString, String userName)
{. ConnectToServer (ipString, userName) ;. SendUserInformation (userName);
}
void ConfigureGameParameters (List lt; Player gt; players, int size)
{gameLogicSettings=new GameSettings
{= size,=players.Count
}; settingsManager=new SettingsManager
{= gameLogicSettings,=new DisplaySettings
{= Color.Black,=Color.Chartreuse,=Color.Bisque,=Color.DarkOrange,=Color.Aqua,=360/gameLogicSettings.MatrixSize - 2,=2
}
};=settingsManager; ();=players; .CreateAllPlayersNameControls ();
}
}
} abstract class FtpCommandParserBase
{readonly Dictionary lt; FtpCommand, Action lt; FtpCommandParserBase, string gt; gt; CommandHandlers=Dictionary lt; FtpCommand, Action lt; FtpCommandParserBase, string gt; gt;
{
{FtpCommand.Abor, (parser, s)= gt; parser.AborCommandHandler (s)},
{FtpCommand.Cdup, (parser, s)= gt; parser.CdupCommandHandler (s)},
{FtpCommand.Cwd, (parser, s)= gt; parser.CwdCommandHandler (s)},
{FtpCommand.Dele, (parser, s)= gt; parser.DeleCommandHandler (s)},
{FtpCommand.List, (parser, s)= gt; parser.ListCommandHandler (s)},
{FtpCommand.Mdtm, (parser, s)= gt; parser.MdtmCommandHandler (s)},
{FtpCommand.Mkd, (parser, s)= gt; parser.MkdCommandHandler (s)},
{FtpCommand.Nlst, (parser, s)= gt; parser.NlstCommandHandler (s)},
{FtpCommand.Noop, (parser, s)= gt; parser.NoopCommandHandler (s)},
{FtpCommand.Pass, (parser, s)= gt; parser.PassCommandHandler (s)},
{FtpCommand.Pasv, (parser, s)= gt; parser.PasvCommandHandler (s)},
{FtpCommand.Port, (parser, s)= gt; parser.PortCommandHandler (s)},
{FtpCommand.Pwd, (parser, s)= gt; parser.PwdCommandHandler (s)},
{FtpCommand.Quit, (parser, s)= gt; parser.QuitCommandHandler (s)},
{FtpCommand.Rein, (parser, s)= gt; parser.ReinCommandHandler (s)},
{FtpCommand.Retr, (parser, s)= gt; parser.RetrCommandHandler (s)},
{FtpCommand.Rmd, (parser, s)= gt; parser.RmdCommandHandler (s)},
{FtpCommand.Rnfr, (parser, s)= gt; parser.RnfrCommandHandler (s)},
{FtpCommand.Rnto, (parser, s)= gt; parser.RntoCommandHandler (s)},
{FtpCommand.Size, (parser, s)= gt; parser.SizeCommandHandler (s)},
{FtpCommand.Stor, (parser, s)= gt; parser.StorCommand...