Example #1
0
 private void ServiceBehavior_Open(ServiceBehavior client)
 {
     Invoke((MethodInvoker) delegate
     {
         ClientForm form = new ClientForm(client);
         int value       = Interlocked.Increment(ref counter);
         form.Text       = "Client " + value;
         form.Owner      = this;
         form.Show(this);
     });
 }
Example #2
0
 private void ServiceBehavior_Open(ServiceBehavior client)
 {
     Invoke((MethodInvoker)delegate
     {
         ClientForm form = new ClientForm(client);
         Interlocked.Increment(ref counter);
         form.Text = "Client " + counter;
         form.Owner = this;
         form.Show(this);
     });
 }