private void RefreshPage()
        {
            if (_target != null)
            {
                //_currentPage = (int)numFrame.Value - 1;

                _currentFrame = _target.GetAnimFrame(_currentPage);

                numStart.Value = _currentFrame.Start;
                numEnd.Value = _currentFrame.End;

                for (int i = 0; i < 2; i++)
                    UpdateBox(i);

                btnPrev.Enabled = _currentPage > 0;
                btnNext.Enabled = _currentPage < (_numFrames - 1);

                listKeyframes.SelectedIndex = FindKeyframe(_currentPage);
            }
        }
        private unsafe void button4_Click(object sender, EventArgs e)
        {
            FogAnimationFrame frame = new FogAnimationFrame();
            float* p = (float*)&frame;

            for (int i = 0; i < 2; i++)
                p[i] = _transBoxes[1][i].Value;

            _tempFogFrame = frame;
        }