| | |
| | | if (_snapDevice == null) { |
| | | _snapDevice = new SnapDevice(); |
| | | } |
| | | _snapDevice.LoadInfo(snap); |
| | | //_snapDevice.LoadInfo(snap); // TODO SNAP |
| | | } |
| | | |
| | | public static string GetCapturePicturePath() { |
| | | DateTime now = DateTime.Now; |
| | | string path = Settings.CaptureUrl; |
| | | string fileName = string.Format("{0}{1}{2}{3}{4}{5}", now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second) + ".jpg"; |
| | | string filePath = path + "\\" + fileName; |
| | | //DateTime now = DateTime.Now; |
| | | //string path = Settings.CaptureUrl; |
| | | //string fileName = string.Format("{0}{1}{2}{3}{4}{5}", now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second) + ".jpg"; |
| | | //string filePath = path + "\\" + fileName; |
| | | |
| | | if (_snapDevice.SnapPictureToFileOK(ref filePath)) { |
| | | return filePath; |
| | | } |
| | | else { |
| | | return string.Empty; |
| | | } |
| | | //if (_snapDevice.SnapPictureToFileOK(ref filePath)) { |
| | | // return filePath; |
| | | //} |
| | | //else { |
| | | // return string.Empty; |
| | | //} |
| | | |
| | | // TODO SNAP |
| | | return string.Empty; |
| | | } |
| | | } |
| | | } |