public GeometryFeaturesCommandGroupSpec(ISldWorks app, IGeometryMacroFeature[] features, IAboutApplicationService abtService) { Title = Resources.CommandBarGeometryTitle; Tooltip = Resources.CommandBarGeometryTooltip; Icon = new GeometryIcon(Resources.geometry_plus_plus); Id = 0; Commands = GetCommands(features, abtService, app); }
internal AboutCommandSpec(IAboutApplicationService abtService, int id) { m_AbtService = abtService; UserId = id; Title = Resources.CommandAboutTitle; Tooltip = Resources.CommandAboutTooltip; HasMenu = true; HasToolbar = false; HasTabBox = false; SupportedWorkspace = swWorkspaceTypes_e.All; Icon = new GeometryIcon(Resources.about_icon); }
private ICommandSpec[] GetCommands(IGeometryMacroFeature[] features, IAboutApplicationService abtService, ISldWorks app) { var cmds = new List <ICommandSpec>(); for (int i = 0; i < features.Length; i++) { cmds.Add(new GeometryFeatureCommandSpec(app, features[i], i)); } cmds.Add(new AboutCommandSpec(abtService, cmds.Count)); return(cmds.ToArray()); }
public AboutCommand(ServicesManager srvMgr) { m_Service = srvMgr.GetService <IAboutApplicationService>(); }