コード例 #1
0
ファイル: TestForm.cs プロジェクト: azend/SOAThortons
        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"]));
            }
        }
コード例 #2
0
ファイル: ServiceChooser.cs プロジェクト: azend/SOAThortons
        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();
            }
        }