Example #1
0
        private void q3ComputeMultBtn_Click(object sender, EventArgs e)
        {
            EuclideanAlgDialog q3ComputeMultDialog = new EuclideanAlgDialog();

            // set QuestionNumber property to 3
            q3ComputeMultDialog.QuestionNumber = "3";

            // add default values to the list
            List <long[]> q3Nums = new List <long[]>();

            q3Nums.Add(new long[2] {
                525, 223
            });
            q3Nums.Add(new long[2] {
                12364, 9867
            });
            q3Nums.Add(new long[2] {
                1234567890, 0987654321
            });
            q3Nums.Add(new long[2] {
                13131717191919, 191917171313
            });

            // set dialog's internal list to added nums
            q3ComputeMultDialog.PairList = q3Nums;
            // show dialog
            q3ComputeMultDialog.ShowDialog();
        }
Example #2
0
        private void q4ComputeMultBtn_Click(object sender, EventArgs e)
        {
            EuclideanAlgDialog q4ComputeMultDialog = new EuclideanAlgDialog();

            q4ComputeMultDialog.QuestionNumber = "4";

            // add default values to the list
            List <long[]> q4Nums = new List <long[]>();

            q4Nums.Add(new long[2] {
                8359, 4962
            });
            q4Nums.Add(new long[2] {
                95243, 24138
            });
            q4Nums.Add(new long[2] {
                88243, 16947
            });

            // set dialog's internal list to added nums
            q4ComputeMultDialog.PairList = q4Nums;
            // show dialog
            q4ComputeMultDialog.ShowDialog();
        }