Changeset 11423 for lang/csharp

Show
Ignore:
Timestamp:
05/12/08 03:58:28 (6 months ago)
Author:
poolmmjp
Message:
  • なるべく無駄な再描画が内容に調整
  • フィルタのON/OFFで即時再描画するようにした
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/MMMMB/MMMMB/MiniBlogView.cs

    r11290 r11423  
    125125                    } 
    126126                    if (before == entryList.Count) return;  // �ω��������ꍇ�͔����� 
    127                     // �`��                    string html = GenerateHtml(); 
    128                     this.Invoke(new MethodInvoker(delegate() 
    129                     { 
    130                         browser.DocumentText = html; 
    131                     })); 
     127                    // �`��                    Redraw(); 
    132128 
    133129                    // �ʒm 
     
    177173        } 
    178174 
     175        private void Redraw() 
     176        { 
     177            string html = GenerateHtml(); 
     178            this.Invoke(new MethodInvoker(delegate() 
     179            { 
     180                if (browser.DocumentText != html) 
     181                { 
     182                    browser.DocumentText = html; 
     183                } 
     184            })); 
     185        } 
     186 
    179187        public void NameClick(string permalink) 
    180188        { 
     
    280288        { 
    281289            filterPanel.Height = (filterCheck.Checked) ? 102 : 25; 
     290            (new Thread(delegate() 
     291            { 
     292                try 
     293                { 
     294                    Redraw(); 
     295                } 
     296                finally 
     297                { 
     298                } 
     299            })).Start(); 
    282300        } 
    283301 
     
    299317                try 
    300318                { 
    301                     this.Invoke(new MethodInvoker(delegate() 
    302                     { 
    303                         browser.DocumentText = GenerateHtml(); 
    304                     })); 
     319                    Redraw(); 
    305320                } 
    306321                finally