Пример #1
0
 private void FilePathTextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (string.IsNullOrEmpty(FetaureFileName.FilePathTextBox.Text))
     {
         return;
     }
     if (Path.GetExtension(FetaureFileName.FilePathTextBox.Text).ToUpper() != ".FEATURE")
     {
         Reporter.ToUser(eUserMsgKeys.GherkinFeatureFileImportOnlyFeatureFileAllowedErrorMessage);
         FetaureFileName.FilePathTextBox.Text = string.Empty;
         return;
     }
     else
     {
         FileContentViewer.Visibility = System.Windows.Visibility.Visible;
         FileContentViewer.Init(FetaureFileName.FilePathTextBox.Text, new GherkinDcoumentEditor(), false);
     }
 }