public GUIRegister(GUIPages.GUILogIn parent_, Communication com_) { InitializeComponent(); wasDisconnected = false; parent = parent_; ctrl = new Controllers.RegisterController(this, com_); checkServerResponse.Interval = new TimeSpan(0, 0, 0, 0, 500); checkServerResponse.Tick += checkServerResponse_Tick; beginListening(); }
// LOG IN public void loadLogIn() { GUIPages.GUILogIn logIn = new GUIPages.GUILogIn(this, com); // create the LogIn GUI page MainFrame.Content = logIn; // apply the page to current window logIn.tryConnect(); // try to connect to the server }
private GUIPages.GUILogIn parent; // the Page that uses this Controller public LogInController(GUIPages.GUILogIn _parent, Communication _com) { parent = _parent; com = _com; }