private void SplashScreen_Load(object sender, EventArgs e) { BackgroundWorker bw = new BackgroundWorker(); bw.WorkerReportsProgress = true; DataAccessClass DAC = new DataAccessClass(); bw.DoWork += new DoWorkEventHandler((obj, args) => { dtsAlles1 = DAC.VulAdapters(bw, dtsAlles1); }); bw.ProgressChanged += new ProgressChangedEventHandler((obj, args) => { prgLoading.Value = args.ProgressPercentage; lblInfo.Text = args.UserState.ToString() + " inladen"; }); bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler((obj, args) => { Dashboard dashboard = new Dashboard(DAC, dtsAlles1); this.Hide(); dashboard.FormClosing += (o, a) => this.Close(); dashboard.Show(); }); bw.RunWorkerAsync(); }
public frmTags(DataAccessClass DAC, dtsAlles dtsAlles) { InitializeComponent(); this.DAC = DAC; this.dtsAlles1 = dtsAlles; }
public Dashboard(DataAccessClass DAC, dtsAlles dtsAlles) { InitializeComponent(); this.DAC = DAC; this.dtsAlles1 = dtsAlles; }
public KiesSerie(DataAccessClass DAC, dtsAlles dtsAlles) { InitializeComponent(); this.DAC = DAC; dtsAlles1 = dtsAlles; }
public FilmToevoegen(DataAccessClass DAC, dtsAlles dtsAlles, int filmId) { InitializeComponent(); this.DAC = DAC; this.dtsAlles1 = dtsAlles; this.filmId = filmId; }
//public FilmsTableAdapter FilmsAdapter; public FilmZoeken(DataAccessClass DAC, dtsAlles dtsAlles, string titel, int jaartal) { InitializeComponent(); this.DAC = DAC; this.dtsAlles1 = dtsAlles; this.titel = titel; this.jaartal = jaartal; }