コード例 #1
0
        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();
        }
コード例 #2
0
        // 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
        }
コード例 #3
0
        private GUIPages.GUILogIn parent;           // the Page that uses this Controller

        public LogInController(GUIPages.GUILogIn _parent, Communication _com)
        {
            parent = _parent;
            com    = _com;
        }