Beispiel #1
0
        void button6_Click(object sender, EventArgs e)
        {
            GenericDistribution chooseGame;

            chooseGame = new GenericDistribution(Program.LotteryFeatureDictionary);
            chooseGame.TestDecideOnGame();
        }
Beispiel #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            DialogResult dr = _openFileDialog2.ShowDialog();

            if (dr == DialogResult.OK)
            {
                // Read the files
                Program.readDistribConfigFile(_openFileDialog2.FileName);

                GenericDistribution chooseGame;
                chooseGame = new GenericDistribution(Program.LotteryFeatureDictionary);
                try
                {
                    Program.gameDetails = chooseGame.TestDecideOnGame();
                    //loaded Config enable components
                    UpdateTree();
                }

                catch (InvalidOperationException exp) {
                    MessageBox.Show("You did not load any configurations");
                }
            }
        }