/
V7Data.cs
98 lines (87 loc) · 1.93 KB
/
V7Data.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
using System;
using Enterprise.AddIn;
namespace OnePy
{
internal class V7Data
{
public static object V7Object
{
get
{
return m_V7Object;
}
set
{
m_V7Object = value;
// Вызываем неявно QueryInterface
m_ErrorInfo = (IErrorLog)value;
m_AsyncEvent = (IAsyncEvent)value;
m_StatusLine = (IStatusLine)value;
m_ExtWndsSupport = (IExtWndsSupport)value;
m_PropertyProfile = (IPropertyProfile)value;
}
}
//public static object obj1C
//{
// get
// {
// return m_obj1C;
// }
// set
// {
// m_obj1C = value;
// }
//}
public static IErrorLog ErrorLog
{
get
{
return m_ErrorInfo;
}
}
public static IAsyncEvent AsyncEvent
{
get
{
return m_AsyncEvent;
}
}
public static IStatusLine StatusLine
{
get
{
return m_StatusLine;
}
}
public static IExtWndsSupport ExtWndsSupport
{
get
{
return m_ExtWndsSupport;
}
}
public static IPropertyProfile PropertyProfile
{
get
{
return m_PropertyProfile;
}
}
public static void Clean()
{
m_AsyncEvent = null;
m_ErrorInfo = null;
m_ExtWndsSupport = null;
m_PropertyProfile = null;
m_StatusLine = null;
m_V7Object = null;
}
private static object m_V7Object;
//private static object m_obj1C; // устанавливается в конструкторе InteractData
private static IErrorLog m_ErrorInfo;
private static IAsyncEvent m_AsyncEvent;
private static IStatusLine m_StatusLine;
private static IExtWndsSupport m_ExtWndsSupport;
private static IPropertyProfile m_PropertyProfile;
}
}