public Worker() { instance = this; this.gom = GOM.Instance; this.log = Log.Instance; this.repository = Repository.Instance; new Thread(new ThreadStart(this.DoWork)).Start(); }
public FormMain() { this.InitializeComponent(); this.directory = new TreeDirectory(null); this.logViewControl1.Log = Log.Instance; this.worker = new Worker(); this.worker.OnInitComplete += new Worker.InitCompleteHandler(this.worker_OnInitComplete); ImageList list = new ImageList(); list.Images.Add(new Bitmap(8, 8)); this.listViewVariables.SmallImageList = list; }