Beispiel #1
0
        private void connectionRequestTimer_Tick(object sender, EventArgs e)
        {
            connectionRequestTimer.Stop();

            int connID = screenShareManager.ControlConnectionForCreation(currentUserID, lessonID /*, Dns.GetHostEntry(Dns.GetHostName()).AddressList[0].ToString(),categoryID*/);    //kontrol et varsa katıl yoksa create et

            if (connID != -1)
            {
                DesktopApplicationForm daf = new DesktopApplicationForm(currentUserID, connectionNameTextBox.Text, connID, lessonID);
                daf.Show();
            }
            else
            {
                if (screenShareManager.HasConnection(currentUserID))
                {
                    btnSubmitConnectionName.Enabled = true;
                    connectionNameTextBox.Enabled   = true;

                    connectionRequestTimer.Start();
                }
                else
                {
                    connectionRequestTimer.Start();
                }
            }
        }
Beispiel #2
0
 public bool HasConnection(int currentUserID)
 {
     return(screenShareComplexManager.HasConnection(currentUserID));
 }