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/SettingsPanel.cs

    r1681 r1768  
    243243                    defaults), S._("Eraser"), MessageBoxButtons.OK, MessageBoxIcon.Warning, 
    244244                    MessageBoxDefaultButton.Button1, 
    245                     S.IsRightToLeft(this) ? MessageBoxOptions.RtlReading : 0); 
     245                    S.IsRightToLeft(this) ? 
     246                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    246247                saveSettings_Click(null, null); 
    247248            } 
     
    286287                MessageBox.Show(this, S._("The path you selected is invalid."), S._("Eraser"), 
    287288                    MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 
    288                     S.IsRightToLeft(this) ? MessageBoxOptions.RtlReading : 0); 
     289                    S.IsRightToLeft(this) ? 
     290                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    289291            } 
    290292        } 
     
    367369                    "the next time Eraser is started."), S._("Eraser"), MessageBoxButtons.OK, 
    368370                    MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 
    369                     S.IsRightToLeft(this) ? MessageBoxOptions.RtlReading : 0); 
     371                    S.IsRightToLeft(this) ? 
     372                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    370373            } 
    371374 
     
    409412                    "Eraser is restarted."), S._("Eraser"), MessageBoxButtons.OK, 
    410413                    MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 
    411                     S.IsRightToLeft(this) ? MessageBoxOptions.RtlReading : 0); 
     414                    S.IsRightToLeft(this) ? 
     415                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    412416            } 
    413417            settings.IntegrateWithShell = uiContextMenu.Checked; 
     
    425429                    S._("Eraser"), MessageBoxButtons.OK, MessageBoxIcon.Information, 
    426430                    MessageBoxDefaultButton.Button1, 
    427                     S.IsRightToLeft(this) ? MessageBoxOptions.RtlReading : 0); 
     431                    S.IsRightToLeft(this) ? 
     432                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    428433                managerSettings.ActivePrng = newPRNG.Guid; 
    429434            } 
Note: See TracChangeset for help on using the changeset viewer.