refactoring
This commit is contained in:
parent
347ffc8a5a
commit
b5d19c5da6
38 changed files with 149 additions and 117 deletions
22
yavscModel/WorkFlow/Configuration/ProviderCollection.cs
Normal file
22
yavscModel/WorkFlow/Configuration/ProviderCollection.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
|
||||
namespace Yavsc.Model.WorkFlow.Configuration
|
||||
{
|
||||
public class WFProviderCollection : ConfigurationElementCollection
|
||||
{
|
||||
protected override object GetElementKey (ConfigurationElement element)
|
||||
{
|
||||
return ((WFProvider) element).Name;
|
||||
}
|
||||
protected override ConfigurationElement CreateNewElement ()
|
||||
{
|
||||
return new WFProvider();
|
||||
}
|
||||
public WFProvider GetElement (string name)
|
||||
{
|
||||
return this.BaseGet (name) as WFProvider;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue