te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
33
Unused/Decal.Adapter.Wrappers/ChoiceDataIndexer.cs
Normal file
33
Unused/Decal.Adapter.Wrappers/ChoiceDataIndexer.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Decal.Interop.Controls;
|
||||
|
||||
namespace Decal.Adapter.Wrappers;
|
||||
|
||||
public sealed class ChoiceDataIndexer : IDisposable
|
||||
{
|
||||
private Choice myControl;
|
||||
|
||||
public object this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((IChoice)myControl).get_Data(index);
|
||||
}
|
||||
set
|
||||
{
|
||||
((IChoice)myControl).set_Data(index, value);
|
||||
}
|
||||
}
|
||||
|
||||
internal ChoiceDataIndexer(Choice control)
|
||||
{
|
||||
myControl = control;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Marshal.ReleaseComObject(myControl);
|
||||
myControl = null;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue