Ejemplo n.º 1
0
        public static ActionBubble CreateActionBubble(clickedHandler runFunction, ImageBrush imageBrush)
        {
            ActionBubble newActionBubble = new ActionBubble();

            newActionBubble.Width   = MainWindow.k_bubbleDiamater;
            newActionBubble.Height  = MainWindow.k_bubbleDiamater;
            newActionBubble.Opacity = 1;
            newActionBubble.Margin  = new System.Windows.Thickness(4);
            newActionBubble.setApp(runFunction, imageBrush);

            return(newActionBubble);
        }
Ejemplo n.º 2
0
 public void setApp(clickedHandler run, ImageBrush icon)
 {
     this.front.Fill = icon;
     clickHandler    = run;
 }