public void PromptAndImportEntities()
        {

            //files.Add(new FileInfo(@"C:\database1.xml"));
            //files.Add(new FileInfo(@"C:\database2.xml"));
            //files.Add(new FileInfo(@"C:\database3.xml"));

            //  DeleteData();
            current = Dispatchers.Current;
            Dispatchers.Main.BeginInvoke(() =>
            {
                SelectFileWindow.FileWindowArgument Argument = new SelectFileWindow.FileWindowArgument { FileAccess = System.IO.FileAccess.Read, Multiselect=true , FileFilter = "xml (*.xml)|*.xml" };
                SelectFileWindow selectFileWindow = new SelectFileWindow(Argument);


                selectFileWindow.Closed += new EventHandler(selectFileWindow_Closed);

                selectFileWindow.Show();

            });




        }
        partial void Export_Execute()
        {
            current = Dispatchers.Current;
            Dispatchers.Main.BeginInvoke(() =>
            {
                SelectFileWindow.FileWindowArgument Argument = new SelectFileWindow.FileWindowArgument { FileAccess = System.IO.FileAccess.Write, FileFilter = "csv (*.csv)|*.csv" };

                SelectFileWindow selectFileWindow = new SelectFileWindow(Argument);

                selectFileWindow.Closed += new EventHandler(selectFileWindowForExport_Closed);

                selectFileWindow.Show();

            });
        }