Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string selectedModule = this.moduleListBox.SelectedValue.ToString();

            if (selectedModule.Contains("Event Monitoring"))
            {
                EventMonitoringPage eventMonitoringPage = new EventMonitoringPage();
                this.NavigationService.Navigate(eventMonitoringPage);
            }
            else if (selectedModule.Contains("Honey Tokens"))
            {
                HoneyTokensPage honeyTokensPage = new HoneyTokensPage();
                this.NavigationService.Navigate(honeyTokensPage);
            }
            else if (selectedModule.Contains("Password Auditing"))
            {
                PasswordAuditingPage passwordAuditingPage = new PasswordAuditingPage();
                this.NavigationService.Navigate(passwordAuditingPage);
            }
            else if (selectedModule.Contains("Password Filtering"))
            {
                PasswordFilterMenuPage passwordFilterMenuPage = new PasswordFilterMenuPage();
                this.NavigationService.Navigate(passwordFilterMenuPage);
            }
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string selectedModule = "";

            try
            {
                selectedModule = this.moduleListBox.SelectedValue.ToString();
            }
            catch
            {
                MessageBox.Show("Invalid Selection");
                return;
            }

            if (selectedModule.Contains("Event Monitoring"))
            {
                CredDefenseEventParserPage credDefenseEventParserPage = new CredDefenseEventParserPage();
                this.NavigationService.Navigate(credDefenseEventParserPage);
            }
            else if (selectedModule.Contains("ResponderGuard"))
            {
                ResponderGuardPage responderGuardPage = new ResponderGuardPage();
                this.NavigationService.Navigate(responderGuardPage);
            }
            else if (selectedModule.Contains("Password Auditing"))
            {
                PasswordAuditPage passwordAuditPage = new PasswordAuditPage();
                this.NavigationService.Navigate(passwordAuditPage);
            }
            else if (selectedModule.Contains("Password Filtering"))
            {
                PasswordFilterMenuPage passwordFilterMenuPage = new PasswordFilterMenuPage();
                this.NavigationService.Navigate(passwordFilterMenuPage);
            }
        }