Ignore:
Timestamp:
May 21, 2010, 4:00:55 PM (12 years ago)
Author:
Paul Lelgemann
Message:
  • Removed unused references and using statement in CrypP2P, PeerToPeer, PeerToPeerBaseProxy

+ Skeleton for P2PEditor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/Worker/WorkerBase.cs

    r1374 r1458  
    1515*/
    1616
    17 using System;
    18 using System.Collections.Generic;
    19 using System.Linq;
    20 using System.Text;
    2117using System.ComponentModel;
    2218
    2319namespace Cryptool.P2P.Worker
    2420{
     21    internal abstract class WorkerBase
     22    {
     23        protected BackgroundWorker BackgroundWorker;
    2524
    26     abstract class WorkerBase
    27     {
    28         protected BackgroundWorker backgroundWorker;
    29 
    30         public WorkerBase()
     25        protected WorkerBase()
    3126        {
    32             backgroundWorker = new BackgroundWorker();
    33             backgroundWorker.DoWork += new DoWorkEventHandler(PerformWork);
    34             backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(WorkComplete);
     27            BackgroundWorker = new BackgroundWorker();
     28            BackgroundWorker.DoWork += PerformWork;
     29            BackgroundWorker.RunWorkerCompleted += WorkComplete;
    3530        }
    3631
     
    3833        {
    3934            PrePerformWork();
    40             backgroundWorker.RunWorkerAsync();
     35            BackgroundWorker.RunWorkerAsync();
    4136        }
    4237
Note: See TracChangeset for help on using the changeset viewer.