private void tabControl1_SelectedTabChanged(object sender, TabStripTabChangedEventArgs e) { if (e.NewTab == tabRound) { RoundRectangleShapeDescriptor rcd = _Shape as RoundRectangleShapeDescriptor; if (rcd == null) { rcd = new RoundRectangleShapeDescriptor(2); } roundTopLeft.Value = rcd.TopLeft; roundTopRight.Value = rcd.TopRight; roundBottomLeft.Value = rcd.BottomLeft; roundBottomRight.Value = rcd.BottomRight; } }
private void RoundCorner_ValueChanged(object sender, EventArgs e) { RoundRectangleShapeDescriptor rd = new RoundRectangleShapeDescriptor(roundTopLeft.Value, roundTopRight.Value, roundBottomLeft.Value, roundBottomRight.Value); buttonRoundPreview.Shape = rd; }