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); }
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 } }
private void button_Click(object sender, RoutedEventArgs e) { string textToGetComments = TextBox.GetLineText(0); HttpCommentGeter httpGeter = new HttpCommentGeter(textToGetComments); }