Example #1
0
        private void buttonEtl(object sender, RoutedEventArgs e)
        {
            string textToGetComments = TextBox.GetLineText(0);
            IStatisctics statistics = new StatiscticsObject();
            HttpCommentGeter httpGeter = new HttpCommentGeter(textToGetComments,
                                                              statistics);
            httpGeter.translateProduct(statistics);
            httpGeter.loadProductToDataBase(statistics);

            MessageBoxResult result = MessageBox.Show( statistics.getSummary(),"Statistics", MessageBoxButton.OK, MessageBoxImage.Information);
        }
Example #2
0
        private void buttonExtract(object sender, RoutedEventArgs e)
        {
            if (!wasTransform && wasLoad && !wasExtract)
            {

                wasExtract = true;
                string textToGetComments = TextBox.GetLineText(0);
                statistics = new StatiscticsObject();
                httpGeter = new HttpCommentGeter(textToGetComments,
                                                              statistics);
                 MessageBoxResult result = MessageBox.Show("Data was exctracted", "Confirmation", MessageBoxButton.OK, MessageBoxImage.Information);

            }
            else
            {
                MessageBoxResult result = MessageBox.Show("Wrong sequence", "Confirmation", MessageBoxButton.OK, MessageBoxImage.Warning);
                //warning window
            }
        }
Example #3
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     string textToGetComments = TextBox.GetLineText(0);
     HttpCommentGeter httpGeter = new HttpCommentGeter(textToGetComments);
 }