This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form4.cs
130 lines (116 loc) · 3.83 KB
/
Form4.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
namespace EmotesEverywhere
{
public partial class Form4 : Window
{
public event ClosePanelHandler ClosePanel;
public delegate void ClosePanelHandler(object sender, EventArgs e);
public Form4()
{
InitializeComponent();
Borderless();
}
private void Form3_Load(object sender, EventArgs e) { }
public void Start()
{
RefreshWindow();
StartPosition = FormStartPosition.CenterParent;
try
{
button2_Update((bool)Properties.Settings.Default["AOT"]);
}
catch
{
button2_Update(false);
}
label4.Text = "Emotes cache version: " + (string)Properties.Settings.Default["Cache"];
QSLabel_Refresh();
ShowDialog();
}
private void QSLabel_Refresh()
{
if (((string)Properties.Settings.Default["Quick_Save"]).Length > 0)
{
label3.Text = (string)Properties.Settings.Default["Quick_Save"];
}
else
{
label3.Text = "No Quick Save Path";
}
}
private void button1_Click(object sender, EventArgs e)
{
Dispose();
}
private void button2_Click(object sender, EventArgs e)
{
button2_Update(!(bool)Properties.Settings.Default["AOT"]);
}
private void button2_Update(bool option)
{
Properties.Settings.Default["AOT"] = option;
Properties.Settings.Default.Save();
ClosePanel(this, new EventArgs());
if (option)
{
button2.BackColor = (Color)Properties.Settings.Default["Copy"];
button2.Text = "ON";
}
else
{
button2.BackColor = (Color)Properties.Settings.Default["Error"];
button2.Text = "OFF";
}
}
private void button3_Click(object sender, EventArgs e)
{
Process.Start("explorer.exe", $"{new Form1().temp_path}");
}
private void button4_Click(object sender, EventArgs e)
{
try
{
Process.Start("explorer.exe", $"{Path.Combine(Environment.GetEnvironmentVariable("LocalAppData"), "EmotesEverywhere")}");
}
catch
{
Process.Start("explorer.exe", $"{Application.LocalUserAppDataPath}");
}
}
private void button5_Click(object sender, EventArgs e)
{
Properties.Settings.Default["Paging"] = 50;
Properties.Settings.Default.Save();
ClosePanel(this, new EventArgs());
}
private void button7_Click(object sender, EventArgs e)
{
Properties.Settings.Default["Paging"] = 500;
Properties.Settings.Default.Save();
ClosePanel(this, new EventArgs());
}
private void button6_Click(object sender, EventArgs e)
{
Properties.Settings.Default["Paging"] = 4;
Properties.Settings.Default.Save();
ClosePanel(this, new EventArgs());
}
private void button10_Click(object sender, EventArgs e)
{
Properties.Settings.Default["Paging"] = 5;
Properties.Settings.Default.Save();
ClosePanel(this, new EventArgs());
}
private void button8_Click(object sender, EventArgs e)
{
Properties.Settings.Default["Quick_Save"] = string.Empty;
Properties.Settings.Default.Save();
ClosePanel(this, new EventArgs());
QSLabel_Refresh();
}
}
}