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

    r1765 r1768  
    146146        { 
    147147            if (MessageBox.Show(this, S._("Are you sure you want to delete the selected tasks?"), 
    148                    S._("Eraser"), MessageBoxButtons.YesNo, MessageBoxIcon.Question, 
    149                    MessageBoxDefaultButton.Button1, 
    150                    S.IsRightToLeft(this) ? MessageBoxOptions.RtlReading : 0) != DialogResult.Yes) 
     148                    S._("Eraser"), MessageBoxButtons.YesNo, MessageBoxIcon.Question, 
     149                    MessageBoxDefaultButton.Button1, S.IsRightToLeft(this) ? 
     150                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0 
     151                ) != DialogResult.Yes) 
    151152            { 
    152153                return; 
     
    445446                            catch (SerializationException ex) 
    446447                            { 
    447                                 MessageBox.Show(S._("Could not import task list from {0}. The error " + 
    448                                     "returned was: {1}", file, ex.Message), S._("Eraser"), 
     448                                MessageBox.Show(S._("Could not import task list from {0}. The " + 
     449                                    "error returned was: {1}", file, ex.Message), S._("Eraser"), 
    449450                                    MessageBoxButtons.OK, MessageBoxIcon.Error, 
    450451                                    MessageBoxDefaultButton.Button1, 
    451                                     S.IsRightToLeft(null) ? MessageBoxOptions.RtlReading : 0); 
     452                                    S.IsRightToLeft(null) ? 
     453                                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    452454                            } 
    453455                        } 
Note: See TracChangeset for help on using the changeset viewer.