private void OnLoaded(object sender, RoutedEventArgs e)
 {
     this.priceRectControl = new priceBorderRectControl(35, "Price");
     Canvas.SetTop(this.priceRectControl, 6);
     Canvas.SetLeft(this.priceRectControl, 30);
     Canvas.SetZIndex(this.priceRectControl, 2);
     this.priceRectControl.mapEllipseSize(30, minLeft, maxLeft);
     this.impCanvas.Children.Add(this.priceRectControl);
     this.obscRectControl = new priceBorderRectControl(70, "Obscurity Rating");
     Canvas.SetTop(this.obscRectControl, 6);
     Canvas.SetLeft(this.obscRectControl, 25);
     Canvas.SetZIndex(this.obscRectControl, 1);
     this.obscRectControl.mapEllipseSize(25, minLeft, maxLeft);
     this.impCanvas.Children.Add(obscRectControl);
     this.starRectControl = new priceBorderRectControl(105, "Star Rating");
     Canvas.SetTop(this.starRectControl, 6);
     Canvas.SetLeft(this.starRectControl, 40);
     Canvas.SetZIndex(this.starRectControl, 0);
     this.starRectControl.mapEllipseSize(40, minLeft, maxLeft);
     this.impCanvas.Children.Add(this.starRectControl);
     this.priceRectControl.MouseDown          += onClick;
     this.obscRectControl.MouseDown           += onClick;
     this.starRectControl.MouseDown           += onClick;
     Window.GetWindow(this).MouseMove         += OnWindowMouseMove;
     Window.GetWindow(this).MouseLeftButtonUp += onBoundClickReleased;
     Window.GetWindow(this).MouseEnter        += ImpFactorSlider_MouseEnter;
 }
 private void doneSelection()
 {
     this.selection = null;
     if (this.currentPrice > 100)
     {
         this.currentPrice = 100.00;
         updatePosition();
     }
     if (this.currentPrice < 0)
     {
         this.currentPrice = 0.0;
         updatePosition();
     }
     if (this.currentObsc > 100)
     {
         this.currentObsc = 100.00;
         updatePosition();
     }
     if (this.currentObsc < 0)
     {
         this.currentObsc = 0.0;
         updatePosition();
     }
     if (this.currentStar > 100)
     {
         this.currentStar = 100.00;
         updatePosition();
     }
     if (this.currentStar < 0)
     {
         this.currentStar = 0.0;
         updatePosition();
     }
 }
 private void onClick(object sender, MouseButtonEventArgs e)
 {
     this.selection = sender as priceBorderRectControl;
 }