예제 #1
0
        /// <summary>
        /// Use this if we're looking at a drawing document.
        /// </summary>
        private void SetupDrawing()
        {
            // New drawing handler. It can use the whole swapp since it doesn't have to figure out the config.
            drb = new DrawingRedbrick(_swApp);

            // Add it to the taskpane
            Controls.Add(drb);

            // whatever's in here, make it dock.
            // TODO: This is kinda stupid. It should be fixed 9-19-2016.
            foreach (Control item in Controls)
            {
                item.Dock = DockStyle.Fill;
            }

            // drawing related events (spoiler: there aren't any)
            ConnectDrawingEvents();
            // Pow-bang! We're set up.
            DrawSetup = true;
            AssySetup = false;
            PartSetup = false;
            drb.unselect();
        }
예제 #2
0
        /// <summary>
        /// Use this if we're looking at a drawing document.
        /// </summary>
        private void SetupDrawing()
        {
            // New drawing handler. It can use the whole swapp since it doesn't have to figure out the config.
              drb = new DrawingRedbrick(_swApp);

              // Add it to the taskpane
              Controls.Add(drb);

              // whatever's in here, make it dock.
              // TODO: This is kinda stupid. It should be fixed 9-19-2016.
              foreach (Control item in Controls)
            item.Dock = DockStyle.Fill;

              // drawing related events (spoiler: there aren't any)
              ConnectDrawingEvents();
              // Pow-bang! We're set up.
              DrawSetup = true;
              AssySetup = false;
              PartSetup = false;
              drb.unselect();
        }