private void SaveFile()
        {
            SetupSaveDialog(SaveDialogSetupType.RDIFile);

            string currentfilename = string.Empty;

            if (string.IsNullOrEmpty(this.xmlfilename))
            {
                if (Directory.Exists(config.DefaultDataDirectory))
                {
                    sfdXML.InitialDirectory = config.DefaultDataDirectory;
                }

                if (sfdXML.ShowDialog() == DialogResult.OK)
                {
                    this.xmlfilename = sfdXML.FileName;
                }
            }

            currentfilename = this.xmlfilename;

            ROMDataManager romMan = new ROMDataManager();
            romMan.SaveROMData(ref this.game, currentfilename);
            changed = false;
            this.SetTitleCaption();
            config.AddToRecentFiles(currentfilename);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     ROMDataManager romMan = new ROMDataManager();
     Game game= romMan.LoadROMData(Server.MapPath("Games\\SampleGame.xml"));
 }
 private void LoadDataDocument(string filename)
 {
     ROMDataManager romMan = new ROMDataManager();
     this.game = romMan.LoadROMData(filename);
     this.xmlfilename = filename;
     this.PopulateListview();
     this.SetTitleCaption();
     this.SetEnabledStatus(true);
     config.AddToRecentFiles(filename);
 }