Exemplo n.º 1
0
        private readonly CtrlSvgViewer ctrlSvgViewer;       // the control for displaying SVG


        /// <summary>
        /// Конструктор, ограничивающий создание объекта без параметров.
        /// </summary>
        private FrmImageDialog()
        {
            InitializeComponent();

            if (ScadaUtils.IsRunningOnWin)
            {
                ctrlSvgViewer = new CtrlSvgViewer()
                {
                    Location = pictureBox.Location,
                    Size     = pictureBox.Size,
                    TabStop  = false
                };
                Controls.Add(ctrlSvgViewer);
            }
            else
            {
                ctrlSvgViewer = null;
            }
        }