예제 #1
0
 protected virtual void _exportMethod(object o) //NULL PARAMETER
 {
     OpenXML.createMarkSpreadsheet(new Dictionary <string, IGridViewModelBase>()
     {
         { this.name, this as IGridViewModelBase }
     }
                                   );
 }
예제 #2
0
 //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);
     }
 }