Exemplo n.º 1
0
        private void CreateAccountButton_Click(object sender, EventArgs e)
        {
            ReachWindow mainWindow = (ReachWindow)Context.EntryPoint;

            mainWindow.CloseAllChildren();
            new NewAccountView();
        }
Exemplo n.º 2
0
        private void SetMdiParent()
        {
            ReachWindow f = (ReachWindow)Context.EntryPoint;

            if (f.InvokeRequired)
            {
                f.Invoke((EmptyFunction)SetMdiParent, null);
                return;
            }
            this.MdiParent = f;
        }
Exemplo n.º 3
0
        private void OnDisconnect(LoggedInUserModel model)
        {
            if (this.InvokeRequired)
            {
                this.Invoke((LoginController.ExternalEventHandler)
                            OnDisconnect, model);
                return;
            }

            this.Visible = false;
            ReachWindow e = (ReachWindow)Context.EntryPoint;

            e.CloseAllChildren();
            e.HideItemsInToolbar();
            e.ShowLoginWindow();
        }
Exemplo n.º 4
0
        private void ReturnToLogin_Click(object sender, EventArgs e)
        {
            ReachWindow mainWindow = (ReachWindow)Context.EntryPoint;

            mainWindow.CloseAllChildren();
        }