Esempio n. 1
0
        static void OpenSVG_Click(object sender, EventArgs e)
        {
            string path  = string.Empty;
            string title = string.Format("SVG Loader version {0}", _version);

            OpenFileDialog dlg = new OpenFileDialog();

            dlg.Title  = title;
            dlg.Filter = "SVG files (*.svg)|*.svg|All files (*.*)|*.*";
            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            path = dlg.FileName;
            OutputCAD   output = new OutputCAD(Plugin._ui);
            XmlDocument xml    = new XmlDocument();

            xml.Load(path);
            Graphics graphics = new Graphics(output);

            graphics.draw(xml);
        }
Esempio n. 2
0
 //-------------------------------------------------------------------
 public Handler()
 {
     _output = new OutputCAD(Plugin._ui);
 }