private void proceedbtn_Click(object sender, RoutedEventArgs e)
        {
            var win = Window.GetWindow(this);
            if (Clipboardbtn.IsChecked == true)
            {
                Visibility = Visibility.Hidden;
                var pocoToDbConnection = new PocoToDbClipboardScript();
                var homePage = (HomePage)(win);
                if (homePage != null) homePage.ContentArea.Content = pocoToDbConnection;
            }
            else if (Browsebtn.IsChecked == true)
            {

                var browseScripts = new BrowseInputScript();
               var filecount= browseScripts.BrowseFilesForConverting(true);
               if (filecount < 1)
               {
                   var homePage = (HomePage)(win);
                   if (homePage != null) homePage.ContentArea.Content = new PocoToDbConnection();
                   MessageBox.Show("No Files Selected");
               }
               else
               {
                   Visibility = Visibility.Hidden;
                   var homePage = (HomePage)(win);
                   if (homePage != null) homePage.ContentArea.Content = browseScripts;
                   browseScripts.NameSpaceNm.Visibility = Visibility.Hidden;
                   browseScripts.NmsLbl.Visibility = Visibility.Hidden;
               }
            }

            else
                MessageBox.Show("Enter the cluster Name to which you want to Connect.");
        }
 private void prevbtn_Click(object sender, RoutedEventArgs e)
 {
     Visibility = Visibility.Hidden;
     var win = Window.GetWindow(this);
     var inputScript = new BrowseInputScript();
     inputScript.InputScriptCollectionTabs();
     var homePage = (HomePage)(win);
     if (homePage != null) homePage.Genrtescriptlbl.FontWeight = FontWeights.Bold;
     var page = (HomePage)(win);
     if (page != null) page.Reviewlbl.FontWeight = FontWeights.Bold;
     var homePage1 = (HomePage)(win);
     if (homePage1 != null) homePage1.ContentArea.Content = inputScript;
 }
        private void proceedbtn_Click(object sender, RoutedEventArgs e)
        {
            var win = Window.GetWindow(this);
            AssignLanguageType();
            if (Clipboardbtn.IsChecked == true)
            {
                Visibility = Visibility.Hidden;
                var clipboardscript = new ClipboardScript();
                var homePage = (HomePage)(win);
                if (homePage != null) homePage.Connectlbl.Visibility = Visibility.Hidden;
                var page = (HomePage)(win);
                if (page != null) page.Metadatalbl.Visibility = Visibility.Hidden;
                var homePage1 = (HomePage)(win);
                if (homePage1 != null) homePage1.Generatelbl.Visibility = Visibility.Hidden;
                var page1 = (HomePage)(win);
                if (page1 != null) page1.Reviewpanelbl.Visibility = Visibility.Hidden;
                var homePage2 = (HomePage)(win);
                if (homePage2 != null) homePage2.Savelbl.Visibility = Visibility.Hidden;
                var page2 = (HomePage)(win);
                if (page2 != null) page2.Genrtescriptlbl.Visibility = Visibility.Visible;
                var homePage3 = (HomePage)(win);
                if (homePage3 != null) homePage3.Genrtescriptlbl.FontWeight = FontWeights.Bold;
                var page3 = (HomePage)(win);
                if (page3 != null) page3.Reviewlbl.Visibility = Visibility.Visible;
                var homePage4 = (HomePage)(win);
                if (homePage4 != null) homePage4.Saveoptionlbl.Visibility = Visibility.Visible;
                var page4 = (HomePage)(win);
                if (page4 != null) page4.Summarylbl.Visibility = Visibility.Visible;
                var homePage5 = (HomePage)(win);
                if (homePage5 != null) homePage5.ContentArea.Content = clipboardscript;
            }
            else if(Browsebtn.IsChecked==true)
            {

                var inputScript = new BrowseInputScript();
                var filecount= inputScript.BrowseFilesForConverting(false);  //Argument indicates IsDbToPoco as false
                if (filecount < 1)
                {
                    MessageBox.Show("No Files Selected");
                }
                else
                {
                    Visibility = Visibility.Hidden;
                    var homePage = (HomePage)(win);
                    if (homePage != null) homePage.ContentArea.Content = inputScript;
                    var page = (HomePage)(win);
                    if (page != null) page.Connectlbl.Visibility = Visibility.Hidden;
                    var homePage1 = (HomePage)(win);
                    if (homePage1 != null) homePage1.Metadatalbl.Visibility = Visibility.Hidden;
                    var page1 = (HomePage)(win);
                    if (page1 != null) page1.Generatelbl.Visibility = Visibility.Hidden;
                    var homePage2 = (HomePage)(win);
                    if (homePage2 != null) homePage2.Reviewpanelbl.Visibility = Visibility.Hidden;
                    var page2 = (HomePage)(win);
                    if (page2 != null) page2.Savelbl.Visibility = Visibility.Hidden;
                    var homePage3 = (HomePage)(win);
                    if (homePage3 != null) homePage3.Genrtescriptlbl.Visibility = Visibility.Visible;
                    var page3 = (HomePage)(win);
                    if (page3 != null) page3.Genrtescriptlbl.FontWeight = FontWeights.Bold;
                    var homePage4 = (HomePage)(win);
                    if (homePage4 != null) homePage4.Reviewlbl.Visibility = Visibility.Visible;
                    var page4 = (HomePage)(win);
                    if (page4 != null) page4.Saveoptionlbl.Visibility = Visibility.Visible;
                    var homePage5 = (HomePage)(win);
                    if (homePage5 != null) homePage5.Summarylbl.Visibility = Visibility.Visible;
                }
            }
            else
            {
                Visibility = Visibility.Hidden;
                var columnfamilyList = new ColumnFamilyList();
                columnfamilyList.PopulateKeyspacenames();
                var homePage = (HomePage)(win);
                if (homePage != null) homePage.Connectlbl.FontWeight = FontWeights.Normal;
                var page = (HomePage)(win);
                if (page != null) page.Metadatalbl.FontWeight = FontWeights.Bold;
                var homePage1 = (HomePage)(win);
                if (homePage1 != null) homePage1.ContentArea.Content = columnfamilyList;
            }
        }