Ejemplo n.º 1
0
 private void button21_Click(object sender, EventArgs e)
 {
     using (OpenFileDialog dlg = new OpenFileDialog())
     {
         dlg.Filter = "Smart Layout Document(*.gxd)|*.gxd";
         if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             IGxdDocument doc = GxdDocument.LoadFrom(dlg.FileName);
             _host.ApplyGxdDocument(doc);
             _host.Render();
         }
     }
 }