예제 #1
0
 private void getFileEncoding()
 {
     FileEncoding = getEncodingFromFile();
     if (FileEncoding == Encoding.ASCII)
     {
         // now the user must choise the right encoding
         ChoiceEncodingWindow choiceWindow = new ChoiceEncodingWindow(FileName);
         //choiceWindow.Owner = this;
         bool?choiceResult = choiceWindow.ShowDialog();
         if (choiceResult == true)
         {
             FileEncoding = choiceWindow.getActualEncoding();
         }
     }
 }
예제 #2
0
 private void getFileEncoding()
 {
     FileEncoding = getEncodingFromFile();
     if (FileEncoding == Encoding.ASCII)
     {
         // now the user must choise the right encoding
         ChoiceEncodingWindow choiceWindow = new ChoiceEncodingWindow(FileName);
         //choiceWindow.Owner = this;
         bool? choiceResult = choiceWindow.ShowDialog();
         if (choiceResult == true)
         {
             FileEncoding = choiceWindow.getActualEncoding();
         }
     }
 }