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