-
Notifications
You must be signed in to change notification settings - Fork 16
/
Class4.cs
56 lines (49 loc) · 925 Bytes
/
Class4.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
using System;
using System.Collections;
using System.Windows.Forms;
internal class Class4 : ComboBox
{
private Hashtable ItemList;
public Class4():base()
{
this.ItemList = new Hashtable();
//base._002Ector();
}
public void method_0()
{
base.Items.Clear();
this.ItemList.Clear();
}
public void method_1(string string_0, int int_0)
{
int num = base.Items.Add(new Class5(string_0, int_0));
if (!this.ItemList.Contains(int_0))
{
this.ItemList.Add(int_0, num);
}
}
public void method_2(int int_0)
{
if (this.ItemList.ContainsKey(int_0))
{
this.SelectedIndex = int.Parse(this.ItemList[int_0].ToString());
}
else if (base.Items.Count > 0)
{
this.SelectedIndex = 0;
}
else
{
this.SelectedIndex = -1;
}
}
public int method_3()
{
Class5 @class = base.SelectedItem as Class5;
if (@class != null)
{
return Convert.ToInt32(@class.Value);
}
return 0;
}
}