Пример #1
0
        private void acceptedRequestTimer_Tick(object sender, EventArgs e)
        {
            acceptedRequestTimer.Stop();
            int connID = screenShareManager.CheckAcceptedRequest(userID);

            if (connID != -1)
            {
                string[] info = screenShareManager.GetAcceptedRequestInfo(connID, userID);

                MessageBox.Show(info[1] + " has accepted your request! Connection again for the connection: " + info[0]);

                Thread.Sleep(3000);

                this.Hide();
                DesktopApplicationForm daf = new DesktopApplicationForm(connID, userID, "Connection");
                daf.FormClosed += (s, args) => this.Close();
                daf.Show();
            }
            else
            {
                acceptedRequestTimer.Start();
            }
        }
Пример #2
0
 public int CheckAcceptedRequest(int userID)
 {
     return(screenShareComplexManager.CheckAcceptedRequest(userID));
 }