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(); } } }
public bool HasConnection(int currentUserID) { return(screenShareComplexManager.HasConnection(currentUserID)); }