コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: CustomLayoutForm.cs プロジェクト: numo16/SharpDX
        /// <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;
        }