Пример #1
0
        public void OnAction(IRibbonControl control)
        {
            Debug.WriteLine(control.Id);

            switch (control.Id)
            {
            case "btnFormatHeaderFooter000":
                CTPManager.ShowCTP();
                break;

            case "btnGUID":
                // do something
                Debug.WriteLine("case catch {0}", control.Id);
                XlGUID.Create();
                break;

            default:
                Debug.WriteLine("No action is assigned to {0}", control.Id.ToString());
                break;
            }
        }
Пример #2
0
 private void DeleteCTP(Workbook Wb)
 {
     CTPManager.DeleteCTP();
 }