資源簡介
C#語言下MAF擴展框架應用完整實例
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.AddIn.Pipeline;
namespace?AddInSideAdapter
{
????[AddInAdapter]
????public?class?NumberProcessorViewToContractAdapter?:?Contractbase?Contract.INumberProcessorContract
????{
????????#region?Data
????????private?AddInView.NumberProcessorAddInView?view;
????????#endregion
????????#region?Ctor
????????public?NumberProcessorViewToContractAdapter(AddInView.NumberProcessorAddInView?view)
????????{
????????????this.view?=?view;
????????}
????????#endregion
????????#region?Public?Methods
????????public?List?ProcessNumbers(int?fromNumber?int?toNumber)
????????{
????????????return?view.ProcessNumbers(fromNumber?toNumber);
????????}
????????public?void?Initialize(Contract.IHostobjectContract?hostObj)
????????{????????????
????????????view.Initialize(new?HostobjectContractToViewAddInAdapter(hostObj));
????????}
????????#endregion
????}
????///?
????///?Allows?AddIn?adapter?to?talk?back?to?HostView
????///?
????public?class?HostobjectContractToViewAddInAdapter?:?AddInView.Hostobject
????{
????????#region?Data
????????private?Contract.IHostobjectContract?contract;
????????private?ContractHandle?handle;
????????#endregion
????????
????????#region?Ctor
????????public?HostobjectContractToViewAddInAdapter(Contract.IHostobjectContract?contract)
????????{
????????????this.contract?=?contract;
????????????this.handle?=?new?ContractHandle(contract);
????????}
????????#endregion
????????#region?Public?Methods
????????public?override?void?ReportProgress(int?progressPercent)
????????{
????????????contract.ReportProgress(progressPercent);
????????}
????????#endregion
????}
????
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.????158720??2020-12-23?20:44??AddInTest\.vs\AddInTest\v16\.suo
?????文件???????1779??2020-08-26?17:22??AddInTest\AddInSideAdapter\AddInAdapters.cs
?????文件???????3090??2020-08-26?14:38??AddInTest\AddInSideAdapter\AddInSideAdapter.csproj
?????文件????????208??2020-12-23?20:44??AddInTest\AddInSideAdapter\obj\Debug\.NETfr
?????文件?????????42??2020-08-26?17:21??AddInTest\AddInSideAdapter\obj\Debug\AddInSideAdapter.csproj.CoreCompileInputs.cache
?????文件???????3485??2020-08-26?17:21??AddInTest\AddInSideAdapter\obj\Debug\AddInSideAdapter.csproj.FileListAbsolute.txt
?????文件???????6347??2020-12-23?20:44??AddInTest\AddInSideAdapter\obj\Debug\AddInSideAdapter.csprojAssemblyReference.cache
?????文件???????5120??2020-08-26?17:22??AddInTest\AddInSideAdapter\obj\Debug\AddInSideAdapter.dll
?????文件??????15872??2020-08-26?17:22??AddInTest\AddInSideAdapter\obj\Debug\AddInSideAdapter.pdb
?????文件???????6292??2020-08-26?14:38??AddInTest\AddInSideAdapter\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????8583??2009-07-20?13:10??AddInTest\AddInSideAdapter\obj\Debug\ResolveAssemblyReference.cache
?????文件???????1444??2007-11-15?13:19??AddInTest\AddInSideAdapter\Properties\AssemblyInfo.cs
?????文件???????5087??2020-08-26?12:16??AddInTest\AddInTest.sln
????..A..H.?????46592??2009-07-20?15:11??AddInTest\AddInTest.suo
?????文件???????2476??2020-08-26?14:37??AddInTest\AddInView\AddInView.csproj
?????文件???????1017??2008-05-07?12:48??AddInTest\AddInView\AddInViews.cs
?????文件????????208??2020-12-23?20:44??AddInTest\AddInView\obj\Debug\.NETfr
?????文件?????????42??2020-08-26?17:21??AddInTest\AddInView\obj\Debug\AddInView.csproj.CoreCompileInputs.cache
?????文件???????3086??2020-08-26?17:21??AddInTest\AddInView\obj\Debug\AddInView.csproj.FileListAbsolute.txt
?????文件???????3692??2020-12-23?20:44??AddInTest\AddInView\obj\Debug\AddInView.csprojAssemblyReference.cache
?????文件???????4608??2020-08-26?17:21??AddInTest\AddInView\obj\Debug\AddInView.dll
?????文件??????11776??2020-08-26?17:21??AddInTest\AddInView\obj\Debug\AddInView.pdb
?????文件???????6018??2020-08-26?14:37??AddInTest\AddInView\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????3584??2008-05-06?15:59??AddInTest\AddInView\obj\Debug\Refactor\AddInView.dll
?????文件???????1430??2007-11-15?13:06??AddInTest\AddInView\Properties\AssemblyInfo.cs
?????文件???????1925??2009-07-20?13:12??AddInTest\Backup\AddInSideAdapter\AddInAdapters.cs
?????文件???????2902??2007-11-18?18:59??AddInTest\Backup\AddInSideAdapter\AddInSideAdapter.csproj
?????文件???????1444??2007-11-15?13:19??AddInTest\Backup\AddInSideAdapter\Properties\AssemblyInfo.cs
?????文件???????4871??2008-05-06?16:05??AddInTest\Backup\AddInTest.sln
?????文件???????2288??2007-11-18?18:57??AddInTest\Backup\AddInView\AddInView.csproj
............此處省略276個文件信息
- 上一篇:Socket聊天室(客戶端與服務端相互通信)
- 下一篇:發那科機器人引導
評論
共有 條評論