Example #1
0
        private void Me_Loaded(object sender, EventArgs e)
        {
            Me.OnThemeChanged();
            Me.OnSizeChanged();

            //

            Label_OffsetX.MouseEnter += Label_ViewOperation_MouseEnter;
            Label_OffsetY.MouseEnter += Label_ViewOperation_MouseEnter;
            Label_OffsetZ.MouseEnter += Label_ViewOperation_MouseEnter;
            Label_RotateX.MouseEnter += Label_ViewOperation_MouseEnter;
            Label_RotateY.MouseEnter += Label_ViewOperation_MouseEnter;
            Label_RotateZ.MouseEnter += Label_ViewOperation_MouseEnter;

            Label_OffsetX.MouseLeave += Label_ViewOperation_MouseLeave;
            Label_OffsetY.MouseLeave += Label_ViewOperation_MouseLeave;
            Label_OffsetZ.MouseLeave += Label_ViewOperation_MouseLeave;
            Label_RotateX.MouseLeave += Label_ViewOperation_MouseLeave;
            Label_RotateY.MouseLeave += Label_ViewOperation_MouseLeave;
            Label_RotateZ.MouseLeave += Label_ViewOperation_MouseLeave;

            Label_OffsetX.MouseDown += Label_ViewOperation_MouseDown;
            Label_OffsetY.MouseDown += Label_ViewOperation_MouseDown;
            Label_OffsetZ.MouseDown += Label_ViewOperation_MouseDown;
            Label_RotateX.MouseDown += Label_ViewOperation_MouseDown;
            Label_RotateY.MouseDown += Label_ViewOperation_MouseDown;
            Label_RotateZ.MouseDown += Label_ViewOperation_MouseDown;

            Label_OffsetX.MouseUp += Label_ViewOperation_MouseUp;
            Label_OffsetY.MouseUp += Label_ViewOperation_MouseUp;
            Label_OffsetZ.MouseUp += Label_ViewOperation_MouseUp;
            Label_RotateX.MouseUp += Label_ViewOperation_MouseUp;
            Label_RotateY.MouseUp += Label_ViewOperation_MouseUp;
            Label_RotateZ.MouseUp += Label_ViewOperation_MouseUp;

            Label_OffsetX.MouseMove += Label_OffsetX_MouseMove;
            Label_OffsetY.MouseMove += Label_OffsetY_MouseMove;
            Label_OffsetZ.MouseMove += Label_OffsetZ_MouseMove;
            Label_RotateX.MouseMove += Label_RotateX_MouseMove;
            Label_RotateY.MouseMove += Label_RotateY_MouseMove;
            Label_RotateZ.MouseMove += Label_RotateZ_MouseMove;

            Panel_View.MouseDown  += Panel_View_MouseDown;
            Panel_View.MouseUp    += Panel_View_MouseUp;
            Panel_View.MouseMove  += Panel_View_MouseMove;
            Panel_View.MouseWheel += Panel_View_MouseWheel;

            //

            foreach (Particle particle in _Particles)
            {
                _InteractiveManager.AddParticle(particle);
            }

            _InteractiveManager.SimulationStart();
        }
Example #2
0
        private void LoadedEvents(object sender, EventArgs e)
        {
            //
            // 在窗体加载后发生。
            //

            Me.OnSizeChanged();
            Me.OnThemeChanged();

            Panel_GraphArea.BackColor = Colors.Background;

            Panel_GraphArea.Visible = true;
        }