/// <summary> /// Initializes a new instance of the <see cref="CustomLayoutForm"/> class. /// </summary> public CustomLayoutForm() { InitializeComponent(); try { InitDirect2DAndDirectWrite(); } catch (Exception ex) { LogException(ex); Environment.Exit(1); } flowLayoutSource = new FlowLayoutSource(); flowLayoutSink = new FlowLayoutSink(); flowLayout = new FlowLayout(FactoryDWrite); SetLayoutText(LayoutText.Latin); SetLayoutShape(FlowShape.Circle); panel1.Paint += RenderControlPaint; panel1.Resize += RenderControlResize; }