Exemplo n.º 1
0
        private void btnSaveAsXml_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.DefaultExt   = ".xml";
            sfd.Filter       = "XML file | *.xml | All Files | *.*";
            sfd.AddExtension = true;
            if (sfd.ShowDialog() == DialogResult.OK)
            {
                _controller.UpdateContext();;
                _controller.SaveAsXML(sfd.FileName);
            }
        }