Ejemplo n.º 1
0
        void StopAdHocDesktopStreamWriter()
        {
            stopButton.Enabled            = false;
            userTreeView.ContextMenuStrip = userContextMenuStrip;

            if (streamWriter != null)
            {
                try
                {
                    streamWriter.Dispose();
                    streamWriter = null;
                }
                catch { }
            }
        }
Ejemplo n.º 2
0
        void UserEndInvitationCallback(object obj)
        {
            string dest = (string)obj;

            if (streamWriter == null)
            {
                profile.Dest = (string)dest;
                streamWriter = new AdHocDesktop_StreamWriter(invitationCommand, user, profile);
                streamWriter.BeginWriting();

                stopButton.Enabled = true;
            }
            else
            {
                streamWriter.SetNexNewCapture();
            }
        }