Ignore:
Timestamp:
2/8/2010 7:20:53 AM (2 years ago)
Author:
lowjoel
Message:

Also specify MessageBoxOptions?.RightAlign? if the dialog which owns the message box is RTL-reading. addresses #275: Code Review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser/Program.GuiProgram.cs

    r1745 r1768  
    152152                        //is running with higher privileges than this instance. Tell the 
    153153                        //user this is the case and show him how to resolve the issue. 
    154                         MessageBox.Show(S._("Another instance of Eraser is already running but it is " + 
    155                             "running with higher privileges than this instance of Eraser.\n\n" + 
     154                        MessageBox.Show(S._("Another instance of Eraser is already running but it " + 
     155                            "is running with higher privileges than this instance of Eraser.\n\n" + 
    156156                            "Eraser will now exit."), S._("Eraser"), MessageBoxButtons.OK, 
    157157                            MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 
    158                             S.IsRightToLeft(null) ? MessageBoxOptions.RtlReading : 0); 
     158                            S.IsRightToLeft(null) ? 
     159                                MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    159160                    } 
    160161                    catch (IOException ex) 
     
    164165                            S._("Eraser"), MessageBoxButtons.OK, MessageBoxIcon.Error, 
    165166                            MessageBoxDefaultButton.Button1, 
    166                             S.IsRightToLeft(null) ? MessageBoxOptions.RtlReading : 0)); 
     167                            S.IsRightToLeft(null) ? 
     168                                MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0)); 
    167169                    } 
    168170                    catch (TimeoutException) 
Note: See TracChangeset for help on using the changeset viewer.