Ejemplo n.º 1
0
        public Form1(string[] args)
        {
            singleton = this;
            InitializeComponent();
            progress = new RenderingProgress(this);

            // Init scenes etc.
            FormSupport.InitializeScenes(args, out string name);

            Text     += @" (" + rev + @") '" + name + '\'';
            formTitle = Text;
            SetWindowTitleSuffix(" Zoom: 100%");

            SetOptions(args);
            buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight);

            // Placeholder image for PictureBox.
            Image image = Resources.CGG_Logo;

            additionalViews = new AdditionalViews(collectDataCheckBox, Notification);

            additionalViews.Initialize();
            // Makes all maps to initialize again.
            additionalViews.SetNewDimensions(ImageWidth, ImageHeight);

            // Default PaZ button = Right.
            panAndZoom = new PanAndZoomSupport(pictureBox1, image, SetWindowTitleSuffix)
            {
                Button = MouseButtons.Right
            };

            rayVisualizer = new RayVisualizer();
        }