private void prevbtn_Click(object sender, RoutedEventArgs e) { Visibility = Visibility.Hidden; var reviewPane = new ReviewPaneCSharp(); var win = Window.GetWindow(this); reviewPane.CreateReviewPane(_namespaceName); var homePage = (HomePage)(win); if (homePage != null) homePage.ContentArea.Content = reviewPane; }
private void reviewbtn_Click(object sender, RoutedEventArgs e) { var scriptWriter = new ScriptWriter(); scriptWriter.GetLanguageType(out IsVb, out IsJava, out IsCSharp, out IsRuby); if (IsPocoToDb) { Visibility = Visibility.Hidden; var pocoToDbReview = new PocoToDbReviewPane(); pocoToDbReview.ClipboardOrBrowseIsChecked(false, true); var win = Window.GetWindow(this); var homePage = (HomePage)(win); if (homePage != null) homePage.ContentArea.Content = pocoToDbReview; } else { Visibility = Visibility.Hidden; var win = Window.GetWindow(this); if (IsVb) { var reviewPaneVb = new ReviewPaneVb(); reviewPaneVb.ClipboardOrConnectionorBrowseIsChecked(false, false, true); reviewPaneVb.CreateReviewPane(NamespaceName); var homePage = (HomePage)(win); if (homePage != null) homePage.ContentArea.Content = reviewPaneVb; } else { var reviewPaneCsharp = new ReviewPaneCSharp(); reviewPaneCsharp.ClipboardOrConnectionorBrowseIsChecked(false, false, true); reviewPaneCsharp.CreateReviewPane(NamespaceName); var homePage = (HomePage)(win); if (homePage != null) homePage.ContentArea.Content = reviewPaneCsharp; } var page = (HomePage)(win); if (page != null) page.Genrtescriptlbl.FontWeight = FontWeights.Normal; var homePage1 = (HomePage)(win); if (homePage1 != null) homePage1.Reviewlbl.FontWeight = FontWeights.Bold; } }
private void Reviewbtn_Click(object sender, RoutedEventArgs e) { if (_pocOobjectList.Count>0) { Visibility = Visibility.Hidden; var win = Window.GetWindow(this); if (_isVb) { var reviewPaneVb = new ReviewPaneVb(); reviewPaneVb.ClipboardOrConnectionorBrowseIsChecked(true, false, false); reviewPaneVb.CreateReviewPane(Nmspcenametxtbox.Text); var homePage = (HomePage)(win); if (homePage != null) homePage.ContentArea.Content = reviewPaneVb; } else { var reviewPaneCsharp = new ReviewPaneCSharp(); reviewPaneCsharp.ClipboardOrConnectionorBrowseIsChecked(true, false, false); reviewPaneCsharp.CreateReviewPane(Nmspcenametxtbox.Text); var homePage = (HomePage)(win); if (homePage != null) homePage.ContentArea.Content = reviewPaneCsharp; } var page = (HomePage)(win); if (page != null) page.Genrtescriptlbl.FontWeight = FontWeights.Normal; var homePage1 = (HomePage)(win); if (homePage1 != null) homePage1.Reviewlbl.FontWeight = FontWeights.Bold; } }