コード例 #1
0
ファイル: frmChatWin.cs プロジェクト: koroboros1/TDDP_lab
        private void button1_Click(object sender, EventArgs e)
        {
            int a = -1;
            int b = -1;
            int n = -1;



            //double[] arr = remoteObj.GetArrayPart();



            a = remoteObj.getA();
            b = remoteObj.getB();
            n = remoteObj.getN();
            if (b == -1)
            {
                MessageBox.Show("All task performed!");
                return;
            }
            tNumb++;
            MessageBox.Show("Task number: " + tNumb);
            MessageBox.Show(String.Format("Your part a={0},b={1},n={2}", a, b, n));
            PerformIntegral(a, b, n);
        }
コード例 #2
0
        //запуск
        private void button1_Click(object sender, EventArgs e)
        {
            int a = -1;
            int b = -1;
            int n = -1;

            a = remoteObj.getA();
            b = remoteObj.getB();
            n = remoteObj.getN();
            if (b == -1)
            {
                MessageBox.Show("Все задачи выполнены!");
                return;
            }
            tNumb++;
            MessageBox.Show("Номер задачи: " + tNumb);
            MessageBox.Show(String.Format("Ваша часть a={0},b={1},n={2}", a, b, n));
            PerformIntegral(a, b, n);
        }