Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Minimized; // Just using a form app for the controls
            this.Hide();

            server = new ClipServer();
            server.peerDict.CollectionChanged += PeerDict_CollectionChanged;
            server.Start();

            var clip = Clipboard.GetDataObject();
            var bf   = new BinaryFormatter();
            var s    = new MemoryStream();
            var cd   = new ClipData();

            cd.FromClipboard();
            bf.Serialize(s, cd);

            ContextMenu_SendTo.DropDownItemClicked += ContextMenu_SendTo_DropDownItemClicked;
        }