private void Save() { Facet f = CurrentFacet; MapIndexForm mapindex = new MapIndexForm(); mapindex.ShowDialog(); int index = mapindex.MapFile; f.MapValue = (byte)index; if (BrowseFolder.ShowDialog() == DialogResult.OK) { string filename = System.IO.Path.Combine(BrowseFolder.SelectedPath, string.Format("map{0}.xml", index)); Utility.SaveXml(f, filename); MessageBox.Show(string.Format("This facet has been saved to:\n\n{0}", filename)); m_Changed = false; } }
private void Save() { Facet f = CurrentFacet; MapIndexForm mapindex = new MapIndexForm(); mapindex.ShowDialog(); int index = mapindex.MapFile; f.MapValue = (byte) index; if ( BrowseFolder.ShowDialog() == DialogResult.OK ) { string filename = System.IO.Path.Combine( BrowseFolder.SelectedPath, string.Format( "map{0}.xml", index ) ); Utility.SaveXml( f, filename ); MessageBox.Show( string.Format( "This facet has been saved to:\n\n{0}", filename ) ); m_Changed = false; } }