示例#1
0
		public List<userspace.Helper.EffectInfo> BaetylusEffectsInfoGet()
		{
			userspace.Helper cHelper = new userspace.Helper();
			List<userspace.Helper.EffectInfo> aRetVal = new List<userspace.Helper.EffectInfo>();
			try
			{
				aRetVal = cHelper.BaetylusEffectsInfoGet();
			}
			catch (Exception ex)
			{
				(new Logger()).WriteError(ex);
			}
			return aRetVal;
		}
示例#2
0
        public string[] DirectoriesSCRGet(string sFolder)
        {
            List <string> aFilenames = new List <string>();

            try
            {
                userspace.Helper cHelper = new userspace.Helper();
                aFilenames.AddRange(cHelper.DirectoriesNamesGet(sFolder));
            }
            catch (Exception ex)
            {
                (new Logger()).WriteError(ex);
            }
            return(aFilenames.ToArray());
        }
示例#3
0
        public List <userspace.Helper.EffectInfo> BaetylusEffectsInfoGet()
        {
            userspace.Helper cHelper = new userspace.Helper();
            List <userspace.Helper.EffectInfo> aRetVal = new List <userspace.Helper.EffectInfo>();

            try
            {
                aRetVal = cHelper.BaetylusEffectsInfoGet();
            }
            catch (Exception ex)
            {
                (new Logger()).WriteError(ex);
            }
            return(aRetVal);
        }
示例#4
0
		public List<int> BaetylusEffectStop(userspace.Helper.EffectInfo[] aEffects)
		{
			userspace.Helper cHelper = new userspace.Helper();
			List<int> aHashes = new List<int>();
			List<int> aRetVal = new List<int>();
			try
			{
				foreach (userspace.Helper.EffectInfo cEI in aEffects)
					aHashes.Add(cEI.nHashCode);
				aRetVal = cHelper.BaetylusEffectStop(aHashes);
			}
			catch (Exception ex)
			{
				(new Logger()).WriteError(ex);
			}
			return aRetVal;
		}
示例#5
0
        public List <int> BaetylusEffectStop(userspace.Helper.EffectInfo[] aEffects)
        {
            userspace.Helper cHelper = new userspace.Helper();
            List <int>       aHashes = new List <int>();
            List <int>       aRetVal = new List <int>();

            try
            {
                foreach (userspace.Helper.EffectInfo cEI in aEffects)
                {
                    aHashes.Add(cEI.nHashCode);
                }
                aRetVal = cHelper.BaetylusEffectStop(aHashes);
            }
            catch (Exception ex)
            {
                (new Logger()).WriteError(ex);
            }
            return(aRetVal);
        }
示例#6
0
		public string[] FilesSCRGet(string sFilesFolder, string[] aExtensions)
		{
			List<string> aFilenames = new List<string>();
			try
			{
				userspace.Helper cHelper = new userspace.Helper();
				aFilenames.AddRange(cHelper.FileNamesGet(sFilesFolder, aExtensions));
			}
			catch (Exception ex)
			{
				(new Logger()).WriteError(ex);
			}
			return aFilenames.ToArray();
		}
示例#7
0
		public Advertisement[] AdvertsSCRGet(Advertisement[] aAdverts)
		{
			List<Advertisement> aRetVal = new List<Advertisement>();
			try
			{
				userspace.Helper cHelper = new userspace.Helper();
				foreach (Advertisement cAdv in aAdverts)
				{
					if (cHelper.FileExist(cAdv.sStoragePath + cAdv.sFilename))
						cAdv.bFileExist = true;
					aRetVal.Add(cAdv);
				}
			}
			catch (Exception ex)
			{
				(new Logger()).WriteError(ex);
			}
			return aRetVal.ToArray();
		}
示例#8
0
		public Clip[] ClipsSCRGet(Clip[] aClips)
		{
			List<Clip> aRetVal = new List<Clip>();
			DBInteract cDBI = new DBInteract();
			string sClipsPath = "NULL";
			(new Logger()).WriteDebug("ClipsSCRGet: [in_count:" + aClips.Length + "]");
			try
			{
				//List<Clip> aSource = cDBI.ClipsSCRGet();
				userspace.Helper cHelper = new userspace.Helper();
				sClipsPath = _ahStoragesSCR.Values.FirstOrDefault(o => o.Contains("clips"));
				if (sClipsPath != null)
					foreach (Clip cClip in aClips)
					{
						if (cHelper.FileExist(sClipsPath + cClip.sFilename))
						{
							cClip.sDuration = cClip.nFramesQty.ToFramesString();
							cClip.bLocked = cClip.sRotation == "Стоп" ? true : false; //PREFERENCES
							cClip.sStoragePath = sClipsPath; //PREFERENCES
							aRetVal.Add(cClip);
						}
					}
			}
			catch (Exception ex)
			{
				(new Logger()).WriteError(ex);
			}
			(new Logger()).WriteDebug("ClipsSCRGet: [out_count:" + aRetVal.Count + "][path:" + sClipsPath + "]");
			return aRetVal.ToArray();
		}
示例#9
0
		public string[] DirectoriesSCRGet(string sFolder)
		{
			List<string> aFilenames = new List<string>();
			try
			{
				userspace.Helper cHelper = new userspace.Helper();
				aFilenames.AddRange(cHelper.DirectoriesNamesGet(sFolder));
			}
			catch (Exception ex)
			{
				(new Logger()).WriteError(ex);
			}
			return aFilenames.ToArray();
		}