예제 #1
0
 public static frmAddNote GetForm(string path, double position, string positionStr)
 {
     if (_frm == null)
     {
         _frm = new frmAddNote();
     }
     _frm.Path        = path;
     _frm.Position    = position;
     _frm.PositionStr = positionStr;
     return(_frm);
 }
예제 #2
0
        private void SetKeyWord()
        {
            if (this.mp.playState == WMPLib.WMPPlayState.wmppsPlaying || this.mp.playState == WMPLib.WMPPlayState.wmppsPaused)
            {
                this.mp.Ctlcontrols.pause();

                string     fn  = TakePhoto();
                frmAddNote frm = frmAddNote.GetForm(this.mp.URL, mp.Ctlcontrols.currentPosition, mp.Ctlcontrols.currentPositionString);
                frm.SnapShot = fn;
                frm.ShowDialog();
                this.mp.Ctlcontrols.play();
                RefreshDataDefault();
            }
            else
            {
                SetErrorInfo("不在播放中");
            }
        }