Esempio n. 1
0
        //! 开始Undo录制
        public bool StartUndoRecord(string path)
        {
            if (CoreView.isUndoRecording())
            {
                return(false);
            }

            try
            {
                var dir = new DirectoryInfo(path);
                if (dir.Exists)
                {
                    dir.Delete(true);
                }
                dir.Create();
            }
            catch (IOException)
            {
                return(false);
            }

            return(CoreView.startRecord(path, CoreView.acquireFrontDoc(),
                                        true, WPFGraphView.getTick()));
        }
Esempio n. 2
0
 //! 返回已录制的相对毫秒数
 public int GetRecordTicks()
 {
     return(CoreView.getRecordTick(false, WPFGraphView.getTick()));
 }