Ejemplo n.º 1
0
		public bool RemoveOutputOptionDeclaration(AppOutputOptionDeclaration optionDecl)
		{
			return _OutputOptionDeclarations.Remove(optionDecl);
		}
Ejemplo n.º 2
0
		public void SetValuesOnDeserialized(StreamingContext context)
		{
			OptionDeclarations = new ReadOnlyObservableCollection<AppOptionDeclaration>(_OptionDeclarations);
			OutputOptionDeclarations = new ReadOnlyObservableCollection<AppOutputOptionDeclaration>(_OutputOptionDeclarations);
			AcceptExtentions = new ReadOnlyObservableCollection<string>(_AcceptExtentions);

			InputOption = new AppInputOptionDeclaration("IN", GetNextOptionDeclarationId());
			SameInputOutputOption = new AppOutputOptionDeclaration("SameInput OutputExtention", GetNextOptionDeclarationId(), FolderItemType.File);
		}
Ejemplo n.º 3
0
		public AppOutputOptionDeclaration AddOutputOptionDeclaration(string name)
		{
			var id = GetNextOptionDeclarationId();
			var newOption = new AppOutputOptionDeclaration("OUT", id, FolderItemType.File);

			newOption.Name = name;

			_OutputOptionDeclarations.Add(newOption);
			return newOption;
		}
Ejemplo n.º 4
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="applicationPath"></param>
		public ApplicationPolicy()
		{
			ApplicationPath = "";
			AppName = "";

			Guid = Guid.NewGuid();

			MaxProcessTime = TimeSpan.FromMinutes(1);

			OptionDeclarationIdSeed = 1;
			_OptionDeclarations = new ObservableCollection<AppOptionDeclaration>();
			OptionDeclarations = new ReadOnlyObservableCollection<AppOptionDeclaration>(_OptionDeclarations);

			_OutputOptionDeclarations = new ObservableCollection<AppOutputOptionDeclaration>();
			OutputOptionDeclarations = new ReadOnlyObservableCollection<AppOutputOptionDeclaration>(_OutputOptionDeclarations);

			_AcceptExtentions = new ObservableCollection<string>();
			AcceptExtentions = new ReadOnlyObservableCollection<string>(_AcceptExtentions);


			InputOption = new AppInputOptionDeclaration("IN", GetNextOptionDeclarationId());
			SameInputOutputOption = new AppOutputOptionDeclaration("SameInput OutputExtention", GetNextOptionDeclarationId(), FolderItemType.File);
		}