private void OnAction(IOfficeApplication application, IRibbonControl control) { try { var helper = new PlatformHelper(); switch (control.Id) { case "SaveToWorkshareButton": { helper.SaveOnline(application); break; } case "ShareToWorkshareButton": { helper.ShareOnline(application); break; } } } catch (Exception e) { Logger.LogError(e); } }
protected override void OnClicked(IOfficeApplication application) { var ph = new PlatformHelper(); ph.ShareOnline(application); }