public override bool Execute(UICommandContext ctx) { var dlg = new SaveFileDialog(); dlg.Filter = "AnyCAD Rapid Files(*.acad)|*.acad"; if (dlg.ShowDialog() == DialogResult.OK) { DocumentIO.Save(ctx.Document, dlg.FileName); } return(true); }
public override bool Execute(UICommandContext ctx) { var dlg = new OpenFileDialog(); dlg.Filter = "AnyCAD Rapid Files(*.acad)|*.acad"; if (dlg.ShowDialog() == DialogResult.OK) { var doc = DocumentIO.Load(dlg.FileName); ctx.mDocView.ResetDocument(doc); } return(true); }