1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Diagnostics ;
4
+ using System . Drawing ;
4
5
using System . IO ;
5
6
using System . Linq ;
6
7
using System . Windows . Forms ;
@@ -86,6 +87,7 @@ private void Form1_Load(object sender, EventArgs e)
86
87
}
87
88
88
89
UpdateConfigFile ( ) ;
90
+ Debug . WriteLine ( "Form1 Loaded" ) ;
89
91
}
90
92
91
93
private void UpdateConfigFile ( )
@@ -94,6 +96,7 @@ private void UpdateConfigFile()
94
96
Configuration1 . UthcraplLastGame = ( string ) listBox2 . SelectedItem ;
95
97
string output = JsonConvert . SerializeObject ( Configuration1 , Formatting . Indented ) ;
96
98
File . WriteAllText ( "config.js" , output ) ;
99
+ Debug . WriteLine ( "Config file Updated!" ) ;
97
100
}
98
101
99
102
private void StartThcrap ( )
@@ -105,6 +108,7 @@ private void StartThcrap()
105
108
//MessageBox.Show(args);
106
109
Process process = new Process { StartInfo = { FileName = "thcrap_loader.exe" , Arguments = s } } ;
107
110
process . Start ( ) ;
111
+ Debug . WriteLine ( "Starting thcrap with {0}" , s ) ;
108
112
if ( checkBox1 . Checked )
109
113
Application . Exit ( ) ;
110
114
}
@@ -131,6 +135,15 @@ private void button1_MouseLeave(object sender, EventArgs e)
131
135
{
132
136
button1 . BackgroundImage = Resources . Shinmera_Banner_5_mini_size ;
133
137
}
138
+
139
+ private void Form1_Resize ( object sender , EventArgs e )
140
+ {
141
+ checkBox1 . Location = new Point ( checkBox1 . Location . X , Size . Height - 66 ) ;
142
+ button1 . Size = new Size ( Size . Width - 43 , button1 . Size . Height ) ;
143
+ splitContainer1 . Size = new Size ( Size . Width - 38 , Size . Height - 132 ) ;
144
+ listBox1 . Size = new Size ( splitContainer1 . Panel1 . Width - 1 , splitContainer1 . Panel1 . Height - 1 ) ;
145
+ listBox2 . Size = new Size ( splitContainer1 . Panel2 . Width - 1 , splitContainer1 . Panel2 . Height - 1 ) ;
146
+ }
134
147
}
135
148
136
149
#pragma warning disable IDE1006 // Naming Styles
0 commit comments