//----- private void init() { //create a Mediator med = new Mediator(pic); //create the buttons rctButton = new RectButton(med); arowButton = new PickButton(med); circButton = new CircleButton(med); flButton = new FillButton(med); undoB = new UndoButton(med); clrb = new ClearButton(med); //add the buttons into the toolbar tBar.Buttons.Add(arowButton); tBar.Buttons.Add(rctButton); tBar.Buttons.Add(circButton); tBar.Buttons.Add(flButton); //include a separator ToolBarButton sep = new ToolBarButton(); sep.Style = ToolBarButtonStyle.Separator; tBar.Buttons.Add(sep); tBar.Buttons.Add(undoB); tBar.Buttons.Add(clrb); }
public void registerArrowButton(PickButton ab) { arrowButton = ab; }