public static void AddCommand(AdnCommand command, Assembly resAssembly) { command.ResAssembly = resAssembly; command.CreateControl(); }
// Static method to add new command, needs to be called // in add-in Activate typically public static void AddCommand(AdnCommand command) { command.ResAssembly = Assembly.GetExecutingAssembly(); command.CreateControl(); }