public void btnInsertTable_Click(Office.IRibbonControl rib, string galleryID, int selectedIndex) { pptfunctions funObj = new pptfunctions(); if (funObj.TSCThemeLoaded()) { frmtable tableObj = new frmtable(); switch (galleryID) { case "Atable1": { PPTAttribute.tableType.Add("Atable1"); break; } case "Atable2": { PPTAttribute.tableType.Add("Atable2"); break; } case "Atable3": { PPTAttribute.tableType.Add("Atable3"); break; } case "Atable4": { PPTAttribute.tableType.Add("Atable4"); break; } case "Atable5": { PPTAttribute.tableType.Add("Atable5"); break; } case "Atable6": { PPTAttribute.tableType.Add("Atable6"); break; } case "Atable7": { PPTAttribute.tableType.Add("Atable7"); break; } case "Atable8": { PPTAttribute.tableType.Add("Atable8"); break; } } tableObj.ShowDialog(); } 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); }
public void btnInserttable_Click(Office.IRibbonControl rib) { pptfunctions funObj = new pptfunctions(); frmtable tbobj = new frmtable(); if (funObj.TSCThemeLoaded()) { tbobj.ShowDialog(); } 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); }