Example #1
0
        private void nextButton__Click(object sender, RoutedEventArgs e)
        {
            if (licensePanel_ == null || currentPanel_ == welcomePanel_)
            {
                if (licensePanel_ == null)
                {
                    licensePanel_ = new LicenseAccept();
                    contentPanel_.Children.Add(licensePanel_);
                    licensePanel_.AgreementStateChanged += new RoutedEventHandler(licensePanel__AgreementStateChanged);
                }
                nextButton_.IsEnabled = licensePanel_.Accepted;
                swap(licensePanel_);
            }

            backButton_.IsEnabled = true;
        }
Example #2
0
        private void nextButton__Click(object sender, RoutedEventArgs e)
        {
            if (licensePanel_ == null || currentPanel_ == welcomePanel_)
            {
                if (licensePanel_ == null)
                {
                    licensePanel_ = new LicenseAccept();
                    contentPanel_.Children.Add(licensePanel_);
                    licensePanel_.AgreementStateChanged += new RoutedEventHandler(licensePanel__AgreementStateChanged);
                }
                nextButton_.IsEnabled = licensePanel_.Accepted;
                swap(licensePanel_);
            }

            backButton_.IsEnabled = true;
        }