예제 #1
0
        public void onRefreshButton(Office.IRibbonControl control)
        {
            Excel.Application exApp = Globals.ThisAddIn.Application as Excel.Application;
            Excel.Workbook wb = exApp.ActiveWorkbook as Excel.Workbook;
            Channel ch = new Channel();
            ch.setAuthToken(TokenStore.getTokenFromStore());

            string txt = ch.channelsRefresh(wb);
            MessageBox.Show(txt, "Refresh");
        }
예제 #2
0
        private void refreshAll(Office.CommandBarButton cmdBarbutton, ref bool cancel)
        {
            Excel.Application exApp = Globals.ThisAddIn.Application as Excel.Application;
            Excel.Workbook wb = exApp.ActiveWorkbook as Excel.Workbook;
            Channel ch = new Channel();
            string txt;

            txt = ch.channelsRefresh(wb);
            MessageBox.Show(txt, "Refresh");
        }