public MainWindow()
        {
            InitializeComponent();
            App MyApplication = ((App)Application.Current);

            _kflop = MyApplication.GetKFlop();

            usbController = MyApplication.GetUSBDevice();
        }
 public void setupPCBBuilder(kflop kflop, usbDevice usb, DataSet ds, string LogFile)
 {
     _LogFile      = LogFile;
     dsData        = ds;
     kf            = kflop;
     usbController = usb;
     dtLog.ReadXml(LogFile);
     // setup worker methods
     backgroundWorkerBuildPCB.DoWork                    += worker_DoWork;
     backgroundWorkerBuildPCB.RunWorkerCompleted        += worker_RunWorkerCompleted;
     backgroundWorkerBuildPCB.WorkerSupportsCancellation = true;
 }