private ConversionObjects ConvertFile(BackgroundWorker bw) { SwfCompilationUnit scu; VexObject v; string xamlFileName; isConverting = true; msg = DDW.SwfToXaml.SwfToXaml.Convert(fileName, false, out scu, out v, out xamlFileName); isConverting = false; swfs.Add(scu); vexObjects.Add(v); xamlFileLocations.Add(xamlFileName); ConversionObjects co = new ConversionObjects(scu, v, xamlFileName, msg); string silverlightFileName; string svMsg = DDW.SwfToXaml.SwfToXaml.Convert(true, scu, v, out silverlightFileName); silverlightFileLocations.Add(silverlightFileName); return co; }
private void AddTab(ConversionObjects co) { //string endName = co.xamlFileName.Remove(0, co.xamlFileName.LastIndexOf("/") + 1); //string tabName = endName.Substring(0, endName.LastIndexOf('.')); TabPage tp = new TabPage(co.scu.Name); this.tabControlFile.TabPages.Add(tp); ActivateTab(this.tabControlFile.TabPages.Count - 1); }