private void dscnntbtn_Click(object sender, RoutedEventArgs e)
 {
     var conversionTypeSelection = new ConversionTypeSelection();
     ContentArea.Content = conversionTypeSelection;
     var win = GetWindow(this);
     var homePage = (HomePage)(win);
     if (homePage != null) homePage.Pocogenlbl.Visibility = Visibility.Visible;
     var page = (HomePage)(win);
     if (page != null) page.Connectlbl.Visibility = Visibility.Hidden;
     var homePage1 = (HomePage)(win);
     if (homePage1 != null) homePage1.Generatelbl.Visibility = Visibility.Hidden;
     var page1 = (HomePage)(win);
     if (page1 != null) page1.Metadatalbl.Visibility = Visibility.Hidden;
     var homePage2 = (HomePage)(win);
     if (homePage2 != null) homePage2.Savelbl.Visibility = Visibility.Hidden;
     var page2 = (HomePage)(win);
     if (page2 != null) page2.Reviewpanelbl.Visibility = Visibility.Hidden;
     var homePage3 = (HomePage)(win);
     if (homePage3 != null) homePage3.Summarylbl.Visibility = Visibility.Hidden;
     var page3 = (HomePage)(win);
     if (page3 != null) page3.Genrtescriptlbl.Visibility = Visibility.Hidden;
     var homePage4 = (HomePage)(win);
     if (homePage4 != null) homePage4.Reviewlbl.Visibility = Visibility.Hidden;
     var page4 = (HomePage)(win);
     if (page4 != null) page4.Saveoptionlbl.Visibility = Visibility.Hidden;
 }
        private void proceedbtn_Click(object sender, RoutedEventArgs e)
        {
            var userName = Usernametxtbox.Text;
            var password = Passwordtxtbox.Text;
            var clusterName = Clustertxtbx.Text;
            var connectionObj = new DatabaseOperationsReader();
            connectionObj.AssignCredentialsToDatabase(userName, password, clusterName);
            var isConnected = connectionObj.ConnectToDatabase(DatabaseType.Cassandra);

            if (isConnected)
            {
                Visibility = Visibility.Hidden;
                var win = Window.GetWindow(this);
                var conversionTypeSelection = new ConversionTypeSelection();
                var homePage = (HomePage)(win);
                if (homePage != null) homePage.ContentArea.Content = conversionTypeSelection;
            }
            else
            {
                ErrorLog.Visibility = Visibility.Visible;
                ErrorLog.Content = "Enter correct credentials.";
            }
        }
 private void prevbtn_Click(object sender, RoutedEventArgs e)
 {
     var conversionTypeSelection = new ConversionTypeSelection();
     var win = Window.GetWindow(this);
     var homePage = (HomePage)(win);
     if (homePage != null) homePage.ContentArea.Content = conversionTypeSelection;
     var page = (HomePage)(win);
     if (page != null) page.Summarylbl.FontWeight = FontWeights.Normal;
     var homePage1 = (HomePage)(win);
     if (homePage1 != null) homePage1.Pocogenlbl.Visibility = Visibility.Visible;
     var page1 = (HomePage)(win);
     if (page1 != null) page1.Connectlbl.Visibility = Visibility.Hidden;
     var homePage2 = (HomePage)(win);
     if (homePage2 != null) homePage2.Generatelbl.Visibility = Visibility.Hidden;
     var page2 = (HomePage)(win);
     if (page2 != null) page2.Metadatalbl.Visibility = Visibility.Hidden;
     var homePage3 = (HomePage)(win);
     if (homePage3 != null) homePage3.Savelbl.Visibility = Visibility.Hidden;
     var page3 = (HomePage)(win);
     if (page3 != null) page3.Reviewpanelbl.Visibility = Visibility.Hidden;
     var homePage4 = (HomePage)(win);
     if (homePage4 != null) homePage4.Summarylbl.Visibility = Visibility.Hidden;
 }