private void GetLockBefore() { var ftpMgr = _sign.Controller.Connection.FtpManager;//SFtpManager.Current; _waitForm.Info(Resource.GetString(Resource.Strings.UploadSchedulerConnectFTPServer)); if (ftpMgr == null || !ftpMgr.IsConnected.HasValue || ftpMgr.IsConnected.Equals(false)) { _waitForm.CancelFtp(Resource.GetString(Resource.Strings.UploadFtpServerDisConnection)); return; } _files.Clear(); // delete old upload files LocalFilePathMapping.DeleteFiles(); var task = _sign.Controller.FileManager.GetLock(); _waitForm.Info(Resource.GetString(Resource.Strings.UploadGetLockStart)); }