Ignore:
Timestamp:
Feb 23, 2010, 7:42:55 PM (12 years ago)
Author:
arnold
Message:

some bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PeerToPeerManager_NEW/P2PManagerPresentation.xaml.cs

    r1167 r1173  
    5151            this.SizeChanged += new SizeChangedEventHandler(P2PManagerPresentation_SizeChanged);
    5252            this.DataContext = entries;
     53            // when expanding Expanders, resize layout
     54            this.Expander_JobStatus.MouseLeftButtonUp += new MouseButtonEventHandler(Expander_JobStatus_MouseLeftButtonUp);
     55            this.Expander_List.MouseLeftButtonUp += new MouseButtonEventHandler(Expander_List_MouseLeftButtonUp);
     56            this.Expander_WorkerInfo.MouseLeftButtonUp += new MouseButtonEventHandler(Expander_WorkerInfo_MouseLeftButtonUp);
     57
     58
     59            this.SourceUpdated += new EventHandler<DataTransferEventArgs>(P2PManagerPresentation_SourceUpdated);
    5360            // when you uncomment this line, you burn 70% of the whole CPU time for Resizing this view...
    5461            //this.LayoutUpdated += new EventHandler(P2PManagerPresentation_LayoutUpdated);
     
    6673            this.Expander_WorkerInfo.Background = blueBrush;
    6774            this.Expander_List.Background = GetGradientGray();
     75        }
     76
     77        void Expander_WorkerInfo_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
     78        {
     79            FunnyResize();
     80        }
     81
     82        void Expander_List_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
     83        {
     84            FunnyResize();
     85        }
     86
     87        void Expander_JobStatus_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
     88        {
     89            FunnyResize();
     90        }
     91
     92        void txtTotal_TextChanged(object sender, TextChangedEventArgs e)
     93        {
     94            FunnyResize();
     95        }
     96
     97        void P2PManagerPresentation_SourceUpdated(object sender, DataTransferEventArgs e)
     98        {
     99            FunnyResize();
    68100        }
    69101
Note: See TracChangeset for help on using the changeset viewer.