private void OnOkButtonClick(object sender, RoutedEventArgs e)
 {
     try
     {
         if (_ownTexture)
         {
             _font.UpdateTexture(_texture);
         }
         _font.UpdateWidths(_charactersWidths);
         _font.SaveHiRes();
         _font.ImportHiRes();
         DialogResult = true;
     }
     catch (Exception ex)
     {
         UIHelper.ShowError(ex);
     }
 }