コード例 #1
0
 public ClientPasswordAsyncResult(ClientForm clientForm, IClientChannel clientChannel, AsyncCallback callback, object state)
     : base(callback, state)
 {
     this.clientForm = clientForm;
     this.clientChannel = clientChannel;
     this.passwordForm = new ClientPasswordDialog();
     this.clientForm.BeginInvoke(new ShowPasswordDialogDelegate(delegate
     {
         this.passwordForm.ShowDialog();
         this.Complete(false);
     }));
 }
コード例 #2
0
 public ClientPasswordAsyncResult(ClientForm clientForm, IClientChannel clientChannel, AsyncCallback callback, object state)
     : base(callback, state)
 {
     this.clientForm    = clientForm;
     this.clientChannel = clientChannel;
     this.passwordForm  = new ClientPasswordDialog();
     this.clientForm.BeginInvoke(new ShowPasswordDialogDelegate(delegate
     {
         this.passwordForm.ShowDialog();
         this.Complete(false);
     }));
 }