Ejemplo n.º 1
0
 protected void OnPropertyLoaded(PropertyLoadedArgs e)
 {
     if (PropertyLoaded != null)
     {
     PropertyLoaded(this, e);
     }
 }
Ejemplo n.º 2
0
 internal void OnPropertyLoaded(object sender, PropertyLoadedArgs e)
 {
     // get up & download rate from preferences
     float upRate=Preferences.GetFloat("MaxUploadRate");
     float downRate=Preferences.GetFloat("MaxDownloadRate");
     if ((upRate*4.0F<downRate)&&(upRate<10))
     {
     Preferences.SetProperty("MaxDownloadRate", upRate*4.0F, false);
     }
     // placeholder for later import of older config files
     /*if (e.Version=="0.1")
     {
     }*/
 }