Ejemplo n.º 1
0
		private void bkg_DoWork(object sender, DoWorkEventArgs e) {
			object[] rez = new object[2];
			rez[0] = FileOperations.OpenSamples();
			if (e.Argument != null) {
				string path = (string)e.Argument;
				Document dc = FileOperations.ConvertXml<Document>(path);
				if (dc == null) {
					rez[1] = null;
					return;
				}
				dc.Path = Path.GetFullPath(path);
				dc.Clear();
				rez[1] = dc;
			}
			e.Result = rez;
		}