-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmEZGrab.cs
89 lines (72 loc) · 1.75 KB
/
frmEZGrab.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace LOIC
{
public partial class frmEZGrab : Form
{
public string hivemind, overlord;
public frmEZGrab(string HiveMind, string OverLord)
{
InitializeComponent();
this.hivemind = HiveMind;
txtHivemind.Text = HiveMind;
this.overlord = OverLord;
txtOverlord.Text = OverLord;
}
private void frmEZGrab_FormClosed(object sender, FormClosedEventArgs e)
{
this.Dispose();
}
private void btnUpdate_Click(object sender, EventArgs e)
{
if (txtDate.Text != "")
{
txtOverlord.Text = overlord + "&@time=" + txtDate.Text + "@";
}
}
private void btnShorten_Click(object sender, EventArgs e)
{
string turl = "";
if (rbbitly.Checked)
{
turl = "http://bit.ly/?u=";
}
else if (rbisgd.Checked)
{
turl = "http://is.gd/create.php?longurl=";
}
turl += Uri.EscapeDataString(txtOverlord.Text);
System.Diagnostics.Process.Start(turl);
}
private void label2_Click(object sender, EventArgs e)
{
}
private void groupBox2_Enter(object sender, EventArgs e)
{
}
private void txtHivemind_TextChanged(object sender, EventArgs e)
{
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void frmEZGrab_Load(object sender, EventArgs e)
{
}
private void txtDate_TextChanged(object sender, EventArgs e)
{
}
private void rbbitly_CheckedChanged(object sender, EventArgs e)
{
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
}
}