コード例 #1
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            ExportGraphOptionsForm exporter = new ExportGraphOptionsForm();

            if (exporter.ShowDialog() == DialogResult.OK)
            {
                IRdfWriter writer = exporter.Writer;
                String     file   = exporter.File;

                try
                {
                    writer.Save(this._g, file);

                    MessageBox.Show("Successfully exported the Graph to the file '" + file + "'", "Graph Export Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("An error occurred attempting to export the Graph:\n" + ex.Message, "Graph Export Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
コード例 #2
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            ExportGraphOptionsForm exporter = new ExportGraphOptionsForm();
            if (exporter.ShowDialog() == DialogResult.OK)
            {
                IRdfWriter writer = exporter.Writer;
                String file = exporter.File;

                try
                {
                    writer.Save(this._g, file);

                    MessageBox.Show("Successfully exported the Graph to the file '" + file + "'", "Graph Export Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("An error occurred attempting to export the Graph:\n" + ex.Message, "Graph Export Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }