-
Notifications
You must be signed in to change notification settings - Fork 14
/
EVEMarketActionWindow.cs
159 lines (139 loc) · 3.46 KB
/
EVEMarketActionWindow.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EVE.ISXEVE.Extensions;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
public class EveMarketActionWindow : EVEWindow
{
public EveMarketActionWindow(LavishScriptObject obj) : base(obj)
{
}
#region LavishScript Members
//private EVEUISingleLineEdit _BidPrice;
//public EVEUISingleLineEdit BidPrice
// {
// //get
// //{
// // if (_BidPrice == null)
// // _BidPrice = this.getEVEUISingleLineEdit("BidPrice");
// // return _BidPrice.Value;
// //}
//}
public EVEUISingleLineEdit BidPrice()
{
return new EVEUISingleLineEdit(GetMember("BidPrice"));
}
public EVEUILabel BidPricePercentageComparison()
{
return new EVEUILabel(GetMember("BidPricePercentageComparison"));
}
private double? _RegionalAverage;
public double RegionalAverage
{
get
{
if (_RegionalAverage == null)
_RegionalAverage = this.GetDouble("RegionalAverage");
return _RegionalAverage.Value;
}
}
/// <summary>
/// Wraps the BestRegional member of the EVEMarketActionWindow datatype.
/// </summary>
/// <returns></returns>
public EVEUILabel BestRegional()
{
return new EVEUILabel(GetMember("BestRegional"));
}
/// <summary>
/// Wraps the BestMatchable member of the EVEMarketActionWindow datatype.
/// </summary>
/// <returns></returns>
public EVEUILabel BestMatchable()
{
return new EVEUILabel(GetMember("BestMatchable"));
}
/// <summary>
/// Wraps the Quantity member of the EVEMarketActionWindow datatype.
/// </summary>
/// <returns></returns>
public EVEUISingleLineEdit Quantity()
{
return new EVEUISingleLineEdit(GetMember("Quantity"));
}
/// <summary>
/// Wraps the QuantityMin member of the EVEMarketActionWindow datatype.
/// </summary>
/// <returns></returns>
public EVEUISingleLineEdit QuantityMin()
{
return new EVEUISingleLineEdit(GetMember("QuantityMin"));
}
/// <summary>
/// Wraps the Duration member of the EVEUICombo datatype.
/// </summary>
/// <returns></returns>
public EVEUICombo Duration()
{
return new EVEUICombo(GetMember("Duration"));
}
/// <summary>
/// Wraps the Range member of the EVEUICombo datatype.
/// </summary>
/// <returns></returns>
public EVEUICombo Range()
{
return new EVEUICombo(GetMember("Range"));
}
/// <summary>
/// Wraps the Fee member of the EVEMarketActionWindow datatype.
/// </summary>
/// <returns></returns>
public EVEUISingleLineEdit Fee()
{
return new EVEUISingleLineEdit(GetMember("Fee"));
}
/// <summary>
/// Wraps the Total member of the EVEMarketActionWindow datatype.
/// </summary>
/// <returns></returns>
public EVEUILabel Total()
{
return new EVEUILabel(GetMember("Total"));
}
private bool? _IsReady;
public bool IsReady
{
get
{
if (_IsReady == null)
_IsReady = this.GetBool("IsReady");
return _IsReady.Value;
}
}
#endregion
#region LavishScript Methods
/// <summary>
/// Wraps the Buy method of the EveSellItemsWindow datatype.
/// </summary>
/// <returns></returns>
public bool Buy()
{
Tracing.SendCallback("EVEMarketActionWindow.Buy");
return ExecuteMethod("Buy");
}
/// <summary>
/// Wraps the Cancel method of the EveSellItemsWindow datatype.
/// </summary>
/// <returns></returns>
public bool Cancel()
{
Tracing.SendCallback("EVEMarketActionWindow.Cancel");
return ExecuteMethod("Cancel");
}
#endregion
}
}