/// <summary>
 /// Ctor
 /// </summary>
 /// <param name="connectionSetting">    Connection setting</param>
 /// <param name="ctlMain">              Main chessboard control</param>
 public frmConnectToFICS(SrcChess2.ChessBoardControl ctlMain, FICSConnectionSetting connectionSetting)
 {
     InitializeComponent();
     m_ctlMain         = ctlMain;
     ConnectionSetting = connectionSetting;
     HostName          = connectionSetting.HostName;
     PortNumber        = connectionSetting.HostPort;
     UserName          = connectionSetting.UserName;
     Password          = "";
     IsAnonymous       = string.Compare(connectionSetting.UserName, "guest", true) == 0;
 }
Example #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="ctlMain">              Main chess board control</param>
 /// <param name="connectionSetting">    Connection setting</param>
 public FICSConnection(SrcChess2.ChessBoardControl ctlMain, FICSConnectionSetting connectionSetting) : this(ctlMain, connectionSetting.HostName, connectionSetting.HostPort, false /*bDebugTrace*/)
 {
     ConnectionSetting = connectionSetting;
 }