Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在其 MenuItemType 中有一个动作的按钮。是否可以让它依次运行两个类?我有一个运行外部程序的类和另一个同步它的类。我想将这两个操作组合在一个按钮中。
您可以编写另一个类,依次调用两个所需的类并将这个新类用于按钮。