Changeset 1143


Ignore:
Timestamp:
6/19/2009 6:35:04 AM (5 years ago)
Author:
lowjoel
Message:

Do not refresh the log list view three times - changing the filter settings would have caued an update which can take a long time.

Location:
trunk/eraser6/Eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser/LogForm.Designer.cs

    r1138 r1143  
    118118            //  
    119119            this.filterSeverity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 
    120             this.filterSeverity.FormattingEnabled = true; 
    121120            this.filterSeverity.Items.AddRange(new object[] { 
    122121            resources.GetString("filterSeverity.Items"), 
  • trunk/eraser6/Eraser/LogForm.cs

    r1138 r1143  
    4141            InitializeComponent(); 
    4242            UXThemeApi.UpdateControlTheme(this); 
    43             this.task = task; 
    4443 
    4544            //Update the title 
     
    5049            filterSeverity.SelectedIndex = 0; 
    5150 
    52             //Add all the existing log messages 
     51            //Display the log entries 
     52            this.task = task; 
    5353            RefreshMessages(); 
    5454            EnableButtons(); 
     
    192192        private void RefreshMessages() 
    193193        { 
     194            //Check if we have a task 
     195            if (task == null) 
     196                return; 
     197 
    194198            Application.UseWaitCursor = true; 
    195  
    196199            this.log.BeginUpdate(); 
    197200            this.log.Items.Clear(); 
Note: See TracChangeset for help on using the changeset viewer.