/* Switch a file from ASCII to UNICODE or vise-versa. */
EFI_STATUS MainCommandSwitchFileType(VOID)
/* Switch a file from ASCII to UNICODE or vise-versa. */
EFI_STATUS MainCommandSwitchFileType(VOID)
{
  if (MainEditor.FileBuffer->ReadOnly) {
    StatusBarSetStatusString (L"Read Only File Can Not Be Modified");
    return EFI_SUCCESS;
  }
  if (MainEditor.FileBuffer->FileType == FileTypeUnicode) {
    MainEditor.FileBuffer->FileType = FileTypeAscii;
  } else {
    MainEditor.FileBuffer->FileType = FileTypeUnicode;
  }
  MainEditor.FileBuffer->FileModified = TRUE;
  return EFI_SUCCESS;
}