private async void ConnectButton_Click(object sender, EventArgs e) { ConnectButton.Enabled = false; await Connection.LoopConnectAsync(); ConnectStatus.Text = Connection.status; ConnectButton.Enabled = true; DownloadFiles.Enabled = true; GetFiles.Enabled = true; }