private void button3_Click(object sender, EventArgs e) { if (teamInfo != null) { Dictionary <string, string> serviceInfo = Comms.QueryService(teamInfo); MessageBox.Show(String.Format("Name: {0}\nIP Address: {1}\nPort: {2}\n", serviceInfo["Name"], serviceInfo["IPAddress"], serviceInfo["Port"])); } }
private void buttonPurchaseTotaller_Click(object sender, EventArgs e) { if (teamInfo != null) { Dictionary <string, string> serviceInfo = Comms.QueryService(teamInfo); // MessageBox.Show(String.Format("Name: {0}\nIP Address: {1}\nPort: {2}\n", serviceInfo["Name"], serviceInfo["IPAddress"], serviceInfo["Port"])); this.Hide(); new PurchaseTotallerInput().ShowDialog(); if (ExecuteService.GetSuccess()) { new PurchaseTotallerResults().ShowDialog(); } this.Show(); this.TopMost = true; this.Focus(); } }