public QuestionsPanel(RegisterPanel registerPanel, Account newAccount) { InitializeComponent(); this._registerPanel = registerPanel; this._newAccount = newAccount; this.Left = registerPanel.Left; this.Top = registerPanel.Top; animCompleted = true; }
public void LogoutButtonClick(object sender, RoutedEventArgs e) { if (_user != null) { MainWindow mainWindow = new MainWindow(); mainWindow.Show(); this.Close(); } else { RegisterPanel registerPanel = new RegisterPanel(); registerPanel.Show(); this.Close(); } }