Beispiel #1
0
        /// <summary>
        /// Initializes the panel and sets the owner.
        /// </summary>
        /// <param name="owner">The NormalSwitcherForm that contains this EditPanel</param>
        internal EditPanel(NormalSwitcherForm owner)
        {
            InitializeComponent();
            this.owner = owner;

            acceptButton.EnabledChanged += new EventHandler(AcceptButton_EnabledChanged);
            copyA.EnabledChanged        += new EventHandler(CopyButton_EnabledChanged);
        }
Beispiel #2
0
        /// <summary>
        /// Initializes the panel and sets the owner.
        /// </summary>
        /// <param name="owner">The NormalSwitcherForm that contains this ListPanel</param>
        internal ListPanel(NormalSwitcherForm owner)
        {
            InitializeComponent();
            this.owner = owner;

            owner.SizeChanged += Owner_SizeChanged;

            Owner_SizeChanged(new object(), new EventArgs());
        }
        /// <summary>
        /// Initializes the NormalSwitcherControl.
        /// </summary>
        /// <param name="owner">The NormalSwitcherForm owning this Control</param>
        internal NormalSwitcherControl(NormalSwitcherForm owner)
        {
            this.InitStyles();
            this.InitContexts();
            this.InitOpenGL();

            this.owner = owner;
            this.scale = owner.TriangleList.Scale;

            this.picking = false;
            this.SetPickingColors();

            this.MouseWheel += this.MouseWheelEvent;
            this.MouseDown  += this.MouseDownEvent;
            this.MouseMove  += this.MouseMoveEvent;
        }
Beispiel #4
0
        /// <summary>
        /// Initializes the NormalSwitcherControl.
        /// </summary>
        public NormalSwitcherControl(NormalSwitcherForm owner, float scale)
        {
            this.InitStyles();
            this.InitContexts();
            this.InitOpenGL();

            this.owner = owner;
            this.scale = scale;

            this.picking   = false;
            this.colorDist = 256 * 256 * 256 / (owner.VertexArray.Length / 9 + 2);
            this.SetPickingColors();

            this.MouseWheel += this.MouseWheelEvent;
            this.MouseDown  += this.MouseDownEvent;
            this.MouseMove  += this.MouseMoveEvent;
        }
Beispiel #5
0
 /// <summary>
 /// Initializes the panel and sets the owner.
 /// </summary>
 /// <param name="owner">The NormalSwitcherForm that contains this AddPanel</param>
 internal AddPanel(NormalSwitcherForm owner)
 {
     InitializeComponent();
     this.owner = owner;
 }