protected AsyncForm() { if (!this.DesignMode) { //抽象类会导致Vs设计器无法显示的问题... _showStateCallback = ShowCallbackMessage; AsyncFormEventBus.Register <AsyncFormMessageEvent>(UpdateUi); WithPrefix = true; } }
//private SynchronizationContext sc; public APM实例() { InitializeComponent(); _showStateCallback = new ShowStateDelegate(ShowState); }
public Form1() { InitializeComponent(); showStateCallback = new ShowStateDelegate(ShowState); }