-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchatload.cs
62 lines (55 loc) · 1.65 KB
/
chatload.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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using agsXMPP;
using AIMLbot;
using System.Windows.Forms;
namespace XIMA_Beta
{
public static class chatload
{
static public int chatwincount;//basecount
static public chatform1[] chatwin = new chatform1[100];//chatwindow
static public String[] chatwinbase = new String[100];//Home list
static public Bot myBot = new Bot();//XIMA Bot
static public bool uniai;
//Chat Window loader
public static void loadchat(String jidq)
{
try
{
chatwin[chatwincount] = new chatform1(jidq);
chatwin[chatwincount].Text = jidq;
chatwin[chatwincount].Show();
if (uniai == true)
{
chatwin[chatwincount].Visible = false;
}
chatwinbase[chatwincount] = jidq;
chatwincount++;
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
}
public static void trayevent(object sender, ToolStripItemClickedEventArgs e)
{
try
{
for (int i = 0; i < 100; i++)
{
if (chatwinbase[i] == e.ClickedItem.Text)
{
chatwin[i].Visible = true;
}
}
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
}
}
}