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(); } } }
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(); } } }