Пример #1
0
        public FormMain(string[] args)
        {
            InitializeComponent();

            if (args.Length > 0)
            {
                imageWindow = new FormDockImageWindow();
                HDevWindowStack.Push(imageWindow.Window.HalconWindow);
                processBar = new FormDockProcessBar(args[0]);
            }
        }
Пример #2
0
        /// <summary>
        /// 创建DockContext
        /// </summary>
        private void CreateContents()
        {
            if (processBar == null)
            {
                imageWindow = new FormDockImageWindow();
                HDevWindowStack.Push(imageWindow.Window.HalconWindow);
                processBar = new FormDockProcessBar();
            }

            toolBox = new FormDockToolBox(this);
        }