コード例 #1
0
        private void proceedbtn_Click(object sender, RoutedEventArgs e)
        {
            ScriptReader.ReinitializeExportList();
            Window win;
            if (DbToPocoBtn.IsChecked == true)
            {
                Visibility = Visibility.Hidden;
                var welcomescreen = new Connection();
                win = Window.GetWindow(this);
                var homePage = (HomePage)(win);
                if (homePage != null) homePage.ContentArea.Content = welcomescreen;
                var page = (HomePage)(win);
                if (page != null) page.Pocogenlbl.Visibility = Visibility.Hidden;
                var homePage1 = (HomePage)(win);
                if (homePage1 != null) homePage1.Connectlbl.Visibility = Visibility.Visible;
                var page1 = (HomePage)(win);
                if (page1 != null) page1.Connectlbl.FontWeight = FontWeights.Bold;
                var homePage2 = (HomePage)(win);
                if (homePage2 != null) homePage2.Generatelbl.Visibility = Visibility.Visible;
                var page2 = (HomePage)(win);
                if (page2 != null) page2.Metadatalbl.Visibility = Visibility.Visible;
                var homePage3 = (HomePage)(win);
                if (homePage3 != null) homePage3.Savelbl.Visibility = Visibility.Visible;
                var page3 = (HomePage)(win);
                if (page3 != null) page3.Reviewpanelbl.Visibility = Visibility.Visible;
                var homePage4 = (HomePage)(win);
                if (homePage4 != null) homePage4.Summarylbl.Visibility = Visibility.Visible;
            }

            if (PocoToDbBtn.IsChecked != true) return;
            Visibility = Visibility.Hidden;
            var pocoToDbConnection = new PocoToDbConnection();
            win = Window.GetWindow(this);
            var page4 = (HomePage)(win);
            if (page4 != null) page4.ContentArea.Content = pocoToDbConnection;
        }
コード例 #2
0
 private void prevbtn_Click(object sender, RoutedEventArgs e)
 {
     Script = string.Empty;
     Visibility = Visibility.Hidden;
     var pocoToDbConnection = new PocoToDbConnection();
     var win = Window.GetWindow(this);
     var homePage = (HomePage)(win);
     if (homePage != null) homePage.ContentArea.Content = pocoToDbConnection;
 }