Esempio n. 1
0
        //============================================================
        protected void LoadClipList()
        {
            // 加载方向
            for (int n = 0; n < (int)ERsDirection.Count; n++)
            {
                QDsResourceClipProperty clipViewer = _clipViewers[n];
                FRsResourceClip         clip       = _resourceAnimation.Clips[n];
                clipViewer.LoadClip(clip);
                //if (null != clip && clip.isShow) {
                if (clip != null)
                {
                    clipViewer.DoPlay();
                }
            }
            // 加载当前显示
            FRsResourceClip firstClip = _resourceAnimation.FristClip;

            qdsProperty.LoadClip(firstClip);
            if (null != firstClip)
            {
                QDsResourceClipProperty viewer = _clipViewers[(int)firstClip.DirectionCd];
                SelectClipViewer(viewer);
                InfoText(firstClip);
            }
        }
Esempio n. 2
0
        //============================================================
        // <T>选中剪辑事件。</T>
        //============================================================
        private void qClipUnkown_OnPictureMouseClick(object sender, MouseEventArgs e)
        {
            QDsResourceClipProperty clipViewer = sender as QDsResourceClipProperty;

            if (null != clipViewer)
            {
                SelectClipViewer(clipViewer);
            }
        }
Esempio n. 3
0
 //============================================================
 protected void SelectClipViewer(QDsResourceClipProperty clipViewer)
 {
     _currentViewer = clipViewer;
     _currentClip   = clipViewer.Clip;
     if (null != _currentClip)
     {
         foreach (QDsResourceClipProperty viewer in _clipViewers)
         {
             viewer.BorderStyle = BorderStyle.FixedSingle;
             viewer.BackColor   = Color.Goldenrod;
         }
         clipViewer.BorderStyle = BorderStyle.Fixed3D;
         clipViewer.BackColor   = Color.Transparent;
         SelectClip(_currentClip);
     }
 }