예제 #1
0
        /// <summary>
        /// Save XML
        /// </summary>
        private void ACTION_SaveXML(bool content = true)
        {
            SaveFileDialog sd = new SaveFileDialog();

            sd.Filter           = "All files (*.*)|*.*|XML files (*.*)|*.xml";
            sd.FilterIndex      = 2;
            sd.RestoreDirectory = true;
            string s = CONTEXT_XML_NODE.Name;

            sd.FileName = s + ".xml";
            if (sd.ShowDialog() == DialogResult.OK)
            {
                tsNode.Text = "Saving XML for " + s + " ...";
                Application.DoEvents();
                Cursor.Current = Cursors.WaitCursor;

                CONTEXT_XML_NODE.SaveXml(sd.FileName, content);
                Cursor.Current = Cursors.Default;
                tsNode.Text    = "";
            }
            build_path();
        }