public void Shutdown() { Label?.Shutdown(); Label = null; _Rectangle?.Shutdown(); _Rectangle = null; }
public Button(Button button, D3DX direct) { textColor = button.textColor; draw = button.draw; position_ = button.position_; _width = button._width; _height = button._height; Label = new Text(button.Label, direct); _Rectangle = new Shapes.Rectangle(button._Rectangle, direct); _Click = button._Click; _App = button._App; _App.Screen(out screenWidth_, out screenHeight_); }
public bool Initialize(D3DX direct) { _Rectangle = new TopoCS.Shapes.Rectangle(); if (!_Rectangle.Initialize(direct.Device)) { return(false); } _Rectangle.twoWay = true; Label = new Text(); if (!Label.Initialize(direct)) { return(false); } Label.SetText(direct, " "); Label.color = textColor; _Click = _App.fPTR; return(true); }