public async void refreshLLN() { lo = new LoadingCircle(); lo.Show(); lo.BringToFront(); Panel pnl = new Panel(); this.Controls.Add(pnl); pnl.BackColor = this.BackColor; pnl.Size = this.Size; pnl.Location = new Point(0, 0); pnl.BringToFront(); string text = this.Text; this.Text = ""; this.Visible = false; lo.Focus(); await Task.Run(() => getAlleLLN()); this.Focus(); this.Visible = true; this.Text = text; Controls.Remove(pnl); lo.Close(); lo.Dispose(); }
async void updateLLN(Leerling l, int id) { LoadingCircle lo = new LoadingCircle(); lo.Show(); lo.Focus(); await Task.Run(() => updaten(l, id)); lo.Close(); }
async void voegToe(Leerling l) { LoadingCircle lo = new LoadingCircle(); lo.Show(); lo.Focus(); await Task.Run(() => toevoegen(l)); lo.Close(); }
async void wisAlles() { LoadingCircle lo = new LoadingCircle(); lo.Show(); lo.Focus(); await Task.Run(() => alleswissen()); lo.Close(); this.TopMost = true; }
async void wisLLN(string voornaam, string achternaam, string postcode) { LoadingCircle lo = new LoadingCircle(); lo.Show(); lo.Focus(); await Task.Run(() => wissen(voornaam, achternaam, postcode)); lo.Close(); this.TopMost = true; }
public async void start() { lo = new LoadingCircle(); lo.Show(); lo.Focus(); lo.TopMost = true; lo.BringToFront(); await Task.Run(() => _start()); lo.Close(); }