protected virtual void _exportMethod(object o) //NULL PARAMETER { OpenXML.createMarkSpreadsheet(new Dictionary <string, IGridViewModelBase>() { { this.name, this as IGridViewModelBase } } ); }
//export all button private void exportAllButton_Click(object sender, RibbonControlEventArgs e) { using (SchoolContext db = Globals.ThisAddIn.activeDb) { Dictionary <string, IGridViewModelBase> dict = new Dictionary <string, IGridViewModelBase>(); foreach (Group g in db.Groups) { GroupViewModel tvm = new GroupViewModel(g); dict.Add( g.Name, tvm.grids[0] ); } OpenXML.createMarkSpreadsheet(dict); } }