private void ClickOpenMenu(object sender, EventArgs e)
 {
     OpenFileDialog ofdDialog = new OpenFileDialog();
     ofdDialog.Title = "Open text file";
     if (ofdDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         string fileName = ofdDialog.FileName;
         SentimentAnalyzerController controller = new SentimentAnalyzerController();
         string textFromFile = controller.GetTextFromFile(fileName);
         rtbText.Text = textFromFile;
     }
 }
 private void ClickTrainButton(object sender, EventArgs e)
 {
     string text = rtbText.Text;
     SentimentAnalyzerController controller = new SentimentAnalyzerController();
     var result = controller.GetTextForMark(text);
     if (result == 1)
     {
         MessageBox.Show("Текст положительно окрашен");
     }
     else
     {
         MessageBox.Show("Текст окрашен отрицательно");
     }
 }