-
Notifications
You must be signed in to change notification settings - Fork 0
/
BalancesTech.cs
62 lines (47 loc) · 1.28 KB
/
BalancesTech.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
using AppCrypto;
using Bittrex.Net;
using Bittrex.Net.Objects;
using CryptoExchange.Net.Authentication;
using StaticExtensions;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Windows.Forms;
namespace OracleAlpha {
public class PositionButton {
public Rectangle Location;
string CurrencyStr;
public PositionButton (Rectangle r, string aCurrencyStr) {
Location = r;
CurrencyStr = aCurrencyStr;
}
}
public class PositionButtons : CObject {
public PositionButtons() : base() {
}
public new PositionButton this[string aCurStr] {
get { return (Contains(aCurStr) ? (PositionButton)base[aCurStr] : null); }
set { base[aCurStr] = value; }
}
public string didHitTest(Int32 X, Int32 Y) {
string tr = "";
foreach (string sCur in Keys) {
if (X > this[sCur].Location.Left &&
X < this[sCur].Location.Right &&
Y > this[sCur].Location.Top &&
Y < this[sCur].Location.Top + this[sCur].Location.Height) {
tr = sCur;
break;
}
}
return tr;
}
}
}