예제 #1
0
 public DummyForm(string secret)
 {
     this.secret = secret;
     clipchain = new ClipboardChain();
     this.Controls.Add(clipchain);
     InitializeComponent();
     clipboardtext = Clipboard.GetText();
     client = new CommClient(this, secret);
 }
예제 #2
0
 void ICommunicator.HandleConnected(Communicator client)
 {
     try {
         Debug.Print("Received HandleConnected");
         this.client = client;
         clipchain.ClipboardChanged += ClipboardChanged;
     }
     catch (Exception e)
     {
         Debug.Print("BAD connected: " + e.ToString());
         throw;
     }
 }
예제 #3
0
 void ICommunicator.HandleConnected(Communicator client)
 {
     wmisession.Log("Worker client connected");
     lock (workerlock)
     {
         clipboard.RegisterClient(this);
         this.workerconnected = true;
     }
     clipboard.PushClientClipboard();
 }