Beispiel #1
0
 void AddCircleSurfaceItem(ICircleSurfaceItem item)
 {
     if (item is CircleProgressBarSurfaceItem progressbar)
     {
         _circleSurfaceItems[item] = new CircleProgressBarSurfaceItemImplements(progressbar, _surfaceLayout, CircleSurface);
     }
     else if (item is CircleSliderSurfaceItem slider)
     {
         _circleSurfaceItems[item] = new CircleSliderSurfaceItemImplements(slider, _surfaceLayout, CircleSurface);
     }
 }
 void AddCircleSurfaceItem(ICircleSurfaceItem item)
 {
     if (item is CircleProgressBarSurfaceItem)
     {
         var widget = new CircleProgressBarSurfaceItemImplements(item as CircleProgressBarSurfaceItem, _surfaceLayout, _surface);
         _circleSurfaceItems[item] = widget;
     }
     else if (item is CircleSliderSurfaceItem)
     {
         var widget = new CircleSliderSurfaceItemImplements(item as CircleSliderSurfaceItem, _surfaceLayout, _surface);
         _circleSurfaceItems[item] = widget;
     }
 }