public Form1(ForumConnection myConnectionP, CurrentForumState State) { myConnection = myConnectionP; CurrentState = State; InitializeComponent(); try { myConnection.connect(); } catch (Exception e) { MessageBox.Show(e.Message); } //testing /** * myConnection.SPlogin("amir", "1234"); * myConnection.BuildForum("united"); * myConnection.Registration("united", "shim", "shim", "*****@*****.**", "shim"); * // myConnection.EmailConfirm(433, "shim"); * myConnection.entry("united"); * myConnection.login("amir", "1234"); * myConnection.AddNewSubForum("Giggs!!", new MemberInfo { id = Int2Guid(-1) }); * myConnection.loggout(); **/ }
public static void setup(TestContext ss) { _server = new TpcServer(12343, new ForumSystemTest()); _server.start(); Thread.Sleep(1000); forum = new ForumConnectionImpl(TpcServer.LocalIPAddress().ToString(), 12343); forum.connect(); }
public Form1(ForumConnection myConnectionP, CurrentForumState State) { myConnection = myConnectionP; CurrentState = State; InitializeComponent(); try{ myConnection.connect(); } catch (Exception e) { MessageBox.Show(e.Message); } }