-
Notifications
You must be signed in to change notification settings - Fork 2
/
frmCircleCalc.cs
69 lines (58 loc) · 2.02 KB
/
frmCircleCalc.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Standalone_Circle_Calc
{
public partial class frmCicleCalc : Form
{
private GeniePlugin.Interfaces.IHost _host;
public frmCicleCalc(ref GeniePlugin.Interfaces.IHost host)
{
InitializeComponent();
_host = host;
}
private void btnOk_Click(object sender, EventArgs e)
{
if (cboSort.Text == "Bottom")
_host.SendText("#var CircleCalc.Sort 1");
else
_host.SendText("#var CircleCalc.Sort 0");
if (Post200Circle.Checked == true)
_host.SendText("#var CircleCalc.Display 1");
else if (NextCircle.Checked == true)
_host.SendText("#var CircleCalc.Display 2");
else
_host.SendText("#var CircleCalc.Display 0");
if (chkEcho.Checked == true)
_host.SendText("#var CircleCalc.Echo 1");
else
_host.SendText("#var CircleCalc.Echo 0");
if (chkLog.Checked == true)
_host.SendText("#var CircleCalc.Log 1");
else
_host.SendText("#var CircleCalc.Log 0");
if (chkParse.Checked == true)
_host.SendText("#var CircleCalc.Parse 1");
else
_host.SendText("#var CircleCalc.Parse 0");
if (chkGag.Checked)
_host.SendText("#var CircleCalc.GagFunny 1");
else
_host.SendText("#var CircleCalc.GagFunny 0");
_host.SendText("#var save");
this.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
}
}