Exemplo n.º 1
0
        public void TSCP_Callback46(Office.IRibbonControl rib)
        {
            pptfunctions funObj = new pptfunctions();

            if (funObj.TSCThemeLoaded())
            {
                frmChartformat chartobj = new frmChartformat();
                chartobj.ShowDialog();
                //funObj.formatChart(tscColors, cDataLabels, cYAxis,rib);
            }
            else
            {
                MessageBox.Show("This functionality works with TSC Theme. Please Load TSC theme and try again. Thanks", PPTAttribute.msgTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            PPTAttribute.UserTracker(rib);
        }
Exemplo n.º 2
0
        public void ChartGalleryOnAction(Office.IRibbonControl rib, string galleryID, int selectedIndex)
        {
            pptfunctions funObj = new pptfunctions();

            if (funObj.TSCThemeLoaded())
            {
                frmChartformat chartobj = new frmChartformat();
                switch (galleryID)
                {
                case "chart1": { funObj.formatChart("item1", rib); break; }

                case "chart2": { funObj.formatChart("item2", rib); break; }

                case "chart3": { funObj.formatChart("item3", rib); break; }

                case "chart4": { funObj.formatChart("item4", rib); break; }
                }
            }
            else
            {
                MessageBox.Show("This functionality works with TSC Theme. Please Load TSC theme and try again. Thanks", PPTAttribute.msgTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            PPTAttribute.UserTracker(rib);
        }