示例#1
0
        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();
        }
示例#2
0
        async void updateLLN(Leerling l, int id)
        {
            LoadingCircle lo = new LoadingCircle();

            lo.Show();
            lo.Focus();

            await Task.Run(() => updaten(l, id));

            lo.Close();
        }
示例#3
0
        async void voegToe(Leerling l)
        {
            LoadingCircle lo = new LoadingCircle();

            lo.Show();
            lo.Focus();

            await Task.Run(() => toevoegen(l));

            lo.Close();
        }
示例#4
0
        async void wisAlles()
        {
            LoadingCircle lo = new LoadingCircle();

            lo.Show();
            lo.Focus();

            await Task.Run(() => alleswissen());

            lo.Close();
            this.TopMost = true;
        }
示例#5
0
        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;
        }
示例#6
0
        public async void start()
        {
            lo = new LoadingCircle();
            lo.Show();
            lo.Focus();
            lo.TopMost = true;
            lo.BringToFront();

            await Task.Run(() => _start());

            lo.Close();
        }