private void MainWindow_Resize(object sender, EventArgs e)
{
if(this.WindowState == FormWindowState.Minimized)
{
if (SettingsHandler.GetMinimizeToTray())
{
Hide();
notifyIcon.Visible = true;
}
}
//DATAGRIDVIEW
dataGridView.Location = new System.Drawing.Point(0, 187);
dataGridView.Size = new System.Drawing.Size(this.Width - 15, this.Height - 225);
dataGridView.ScrollBars = ScrollBars.Both;
//DELETE BUTTON
DeleteButton.Location = new System.Drawing.Point(this.Width - 105, 113);
//uTORRENT SEND BUTTON
uTorrentSendIndividualButton.Location = new System.Drawing.Point(this.Width - 145, 150);
//REFRESH BUTTON
RefreshButton.Location = new System.Drawing.Point(0, 151);
}