- smartjobmanager.zip
- Code
- Bin
- App.config
- cachingconfiguration.config
- ClientApplication.exe
- EntLibHelper.dll
- exceptionhandlingconfiguration.config
- install.bat
- InvokerSample.exe.config
- log
- exceptions
- SmartJobManager.log
- loggingconfiguration.config
- loggingdistributorconfiguration.config
- Microsoft.Practices.EnterpriseLibrary.Caching.dll
- Microsoft.Practices.EnterpriseLibrary.Common.dll
- Microsoft.Practices.EnterpriseLibrary.Configuration.dll
- Microsoft.Practices.EnterpriseLibrary.Data.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
- Microsoft.Practices.EnterpriseLibrary.Security.ActiveDirectory.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Cache.CachingStore.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Database.Authentication.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Database.dll
- Microsoft.Practices.EnterpriseLibrary.Security.dll
- Providers.dll
- SampleProviders.dll
- ScreencaptureJobManagerProvider.dll
- SimpleJobManagerProvider.dll
- SmartJobManager.BusinessLogicLayer.dll
- SmartJobManagerService.exe
- SmartJobManagerService.exe.config
- uninstall.bat
- ClientApplication
- EntLibHelper
- Library
- Microsoft.Practices.EnterpriseLibrary.Caching.dll
- Microsoft.Practices.EnterpriseLibrary.Common.dll
- Microsoft.Practices.EnterpriseLibrary.Configuration.dll
- Microsoft.Practices.EnterpriseLibrary.Data.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
- Microsoft.Practices.EnterpriseLibrary.Security.ActiveDirectory.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Cache.CachingStore.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Database.Authentication.dll
- Microsoft.Practices.EnterpriseLibrary.Security.Database.dll
- Microsoft.Practices.EnterpriseLibrary.Security.dll
- Objects
- Providers
- bin
- Configuration
- Providers.csproj
- Providers.csproj.user
- System
- Configuration
- Providers
- Providers
- Readme.txt
- SampleProviders
- ScreencaptureJobManagerProvider
- SimpleJobManagerProvider
- SmartJobManager.sln
- SmartJobManagerService
|
// =====================================================================================
// Copyright © 2005 by Shahed Khan. All rights are reserved.
//
// If you like this code then feel free to go ahead and use it.
// The only thing I ask is that you don't remove or alter my copyright notice.
//
// Your use of this software is entirely at your own risk. I make no claims or
// warrantees about the reliability or fitness of this code for any particular purpose.
// If you make changes or additions to this code please mark your code as being yours.
//
// website , email shahed.khan@gmail.com
// =====================================================================================
using System.ComponentModel;
using System.Collections;
using System;
using System.Diagnostics;
using System.Xml.Serialization;
namespace SmartJobManager
{
///<summary>
/// This class is a strong typed collection of <see cref="JobDetail"/> objects that support sorting and binding.
/// <remarks>
/// It implements the IClonable, IBindingList and IList interfaces.
/// </remarks>
///</summary>
[Serializable]
public class JobDetailCollectionBase : CollectionBase
{
#region Typed Collection Methods
/// <summary>
/// Adds a new JobDetail instance to the Collection.
/// </summary>
/// <param name="value"><see cref="Product"/> instance.</param>
/// <returns></returns>
public int Add (JobDetail value)
{
return List.Add(value);
}
/// <summary>
/// Adds a new JobDetail instance to the Collection.
/// </summary>
///<param name="ID"></param>
///<param name="JobID"></param>
///<param name="ElementDesc"></param>
///<param name="ElementDataType"></param>
/// <returns></returns>
public int Add (System.Int32 ID, System.Int32 JobID, System.String ElementDesc, System.Int32 ElementDataType)
{
return List.Add(new JobDetail(ID, JobID, ElementDesc, ElementDataType));
}
/// <summary>
/// Adds a new JobDetail to the Collection.
/// </summary>
/// <returns>Product object.</returns>
public JobDetail AddNew()
{
return (JobDetail)((IBindingList)this).AddNew();
}
/// <summary>
/// Gets or sets the <see cref="JobDetail"/> at the specified index.
/// </summary>
/// <value></value>
public JobDetail this[int index]
{
get
{
return (JobDetail)(List[index]);
}
set
{
List[index] = value;
}
}
/// <summary>
/// Removes a JobDetail object from the Collection.
/// </summary>
/// <param name="value">Product object.</param>
public void Remove (JobDetail value)
{
List.Remove(value);
}
#endregion
///<summary>
/// Returns a String that represents the current JobDetailCollection.
///</summary>
public override string ToString()
{
string output = string.Format("There is {0} JobDetail object in this collection{1}{1}", this.List.Count, Environment.NewLine);
foreach(JobDetail p in this.List)
{
output += p.ToString();
}
return output;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.