private void prevbtn_Click(object sender, RoutedEventArgs e)
 {
     if (_isCheckedClipboard)
     {
         var clipScript = new ClipboardScript();
         clipScript.ReAssignValues();
         Visibility = Visibility.Hidden;
         var win = Window.GetWindow(this);
         var homePage = (HomePage)(win);
         if (homePage != null) homePage.Reviewpanelbl.FontWeight = FontWeights.Normal;
         var page = (HomePage)(win);
         if (page != null) page.Generatelbl.FontWeight = FontWeights.Bold;
         var homePage1 = (HomePage)(win);
         if (homePage1 != null) homePage1.ContentArea.Content = clipScript;
     }
     else if (_isBrowseChecked)
     {
         var outputScript = new OutputScriptForBrowse();
         Visibility = Visibility.Hidden;
         var win = Window.GetWindow(this);
         var homePage = (HomePage)(win);
         if (homePage != null) homePage.Genrtescriptlbl.FontWeight = FontWeights.Normal;
         var page = (HomePage)(win);
         if (page != null) page.Reviewlbl.FontWeight = FontWeights.Bold;
         var homePage1 = (HomePage)(win);
         if (homePage1 != null) homePage1.ContentArea.Content = outputScript;
     }
     else
     {
         var generatedPoco = new ScriptsPoco();
         Visibility = Visibility.Hidden;
         var win = Window.GetWindow(this);
         var homePage = (HomePage)(win);
         if (homePage != null) homePage.Reviewpanelbl.FontWeight = FontWeights.Normal;
         var page = (HomePage)(win);
         if (page != null) page.Generatelbl.FontWeight = FontWeights.Bold;
         var homePage1 = (HomePage)(win);
         if (homePage1 != null) homePage1.ContentArea.Content = generatedPoco;
     }
 }
 private void generatebtn_Click(object sender, RoutedEventArgs e)
 {
     _checkedParentNodes = new List<string>();
     _checkedChildNodes = new List<string>();
     var nodes = Columnfamilytree.Items;
     ScriptReader.ReinitializeExportList();
     GenerateScriptForCassandraDatabaseItems(nodes, ref _checkedParentNodes, ref _checkedChildNodes);
     Visibility = Visibility.Hidden;
     var scriptsPoco = new ScriptsPoco();
     scriptsPoco.ShowGeneratedList(_namespaceName, PocoList);
     var win = Window.GetWindow(this);
     var homePage = (HomePage)(win);
     if (homePage != null) homePage.Metadatalbl.FontWeight = FontWeights.Normal;
     var page = (HomePage)(win);
     if (page != null) page.Generatelbl.FontWeight = FontWeights.Bold;
     var homePage1 = (HomePage)(win);
     if (homePage1 != null) homePage1.ContentArea.Content = scriptsPoco;
 }