/////////////////////////////////////////////////////////////////////////////// // Eventhandler // /////////////////////////////////////////////////////////////////////////////// #region EVENTS /////////////////////////////////////////////////////////////////////////////// // Eventhandler for UI, Menu, Buttons, Toolbars etc. // /////////////////////////////////////////////////////////////////////////////// #region WINDOWSEVENTHANDLER /// <summary> /// The <see cref="BackgroundWorker.DoWork"/> event handler of the /// <see cref="BackgroundWorker"/> <see cref="bgwLoad"/>. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">A <see cref="DoWorkEventArgs"/> with the event data.</param> private void bgwLoad_DoWork(object sender, DoWorkEventArgs e) { // Get the BackgroundWorker that raised this event. BackgroundWorker worker = sender as BackgroundWorker; ImportDataSplash newSplash = new ImportDataSplash(); newSplash.Worker = worker; newSplash.ShowDialog(); }
/////////////////////////////////////////////////////////////////////////////// // Eventhandler // /////////////////////////////////////////////////////////////////////////////// #region EVENTS /////////////////////////////////////////////////////////////////////////////// // Eventhandler for UI, Menu, Buttons, Toolbars etc. // /////////////////////////////////////////////////////////////////////////////// #region WINDOWSEVENTHANDLER /// <summary> /// The <see cref="BackgroundWorker.DoWork"/> event handler of the /// <see cref="BackgroundWorker"/> <see cref="bgwLoad"/>. /// </summary> /// <param name="sender">Source of the event.</param> /// <param name="e">A <see cref="DoWorkEventArgs"/> with the event data.</param> private void bgwLoad_DoWork(object sender, DoWorkEventArgs e) { // Get the BackgroundWorker that raised this event. BackgroundWorker worker = sender as BackgroundWorker; ImportDataSplash newSplash = new ImportDataSplash(); newSplash.Worker = worker; newSplash.ShowDialog(); }