Class ProjectService<Setting, Interface>
public abstract class ProjectService<Setting, Interface> : ServiceSettingInstance<Setting, Interface>, INotifyPropertyChanged, IDisplayer, ISetting, IProjectOption where Setting : class, Interface, new()
Type Parameters
SettingInterface
- Inheritance
-
ServiceSettingInstance<Setting, Interface>ProjectService<Setting, Interface>
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Current
[Browsable(false)]
public IProjectItem Current { get; set; }
Property Value
CurrentChanged
[Browsable(false)]
public Action<IProjectItem, IProjectItem> CurrentChanged { get; set; }
Property Value
Extenstion
[Display(Name = "扩展名")]
public string Extenstion { get; set; }
Property Value
Projects
[Browsable(false)]
public ObservableCollection<IProjectItem> Projects { get; }
Property Value
SaveMode
[Display(Name = "保存的时机")]
public ProjectSaveMode SaveMode { get; set; }
Property Value
Methods
Add(IProjectItem)
public virtual void Add(IProjectItem project)
Parameters
projectIProjectItem
Delete(Func<IProjectItem, bool>)
public virtual void Delete(Func<IProjectItem, bool> func)
Parameters
funcFunc<IProjectItem, bool>
GetDefaultFolder()
protected override string GetDefaultFolder()
Returns
GetPath()
public virtual string GetPath()
Returns
Load(out string)
public bool Load(out string message)
Parameters
messagestring
Returns
OnCurrentChanged(IProjectItem, IProjectItem)
protected virtual void OnCurrentChanged(IProjectItem o, IProjectItem n)
Parameters
OnItemChanged()
protected virtual void OnItemChanged()
Where(Func<IProjectItem, bool>)
public virtual IEnumerable<IProjectItem> Where(Func<IProjectItem, bool> func = null)
Parameters
funcFunc<IProjectItem, bool>