private void SelectTicklet(Ticklet t) { selectedTicklet = t; if (t != null) { Action SetText = () => { tickletSelectionBox.Text = "ID: " + t.getID() + " Connection:" + t.getConnectionString(); }; this.Invoke(SetText); } else { Action SetText = () => { tickletSelectionBox.Text = "no ticklet selected"; }; this.Invoke(SetText); } }
public Viewportletlet_Window() { selectedTicklet = null; parseServerAddress(); InitializeComponent(); FindMyIP(); voiceButton.Enabled = false; InitializeTickList(); InitializeAndSubscribeViewer(); cooldownThread = new System.Threading.Thread(Cooldown); cooldownThread.Start(); socketThread = new System.Threading.Thread(InitializeServerSocket); socketThread.Start(); }