예제 #1
0
        public Quiz()
        {
            InitializeComponent();

            ivf = new ImageViewForm();
            ivf.Show();

            kindChecks = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4, checkBox5, checkBox6, checkBox7, checkBox8, checkBox9, checkBox10, checkBox11, checkBox12 };
            elementChecks = new CheckBox[] { checkBox24, checkBox23, checkBox22, checkBox21, checkBox20, checkBox19, checkBox18, checkBox17, checkBox26, checkBox25, checkBox16, checkBox15, checkBox14, checkBox13, checkBox27, checkBox28 };
            updateChecks = new CheckBox[] { checkBox29, checkBox30, checkBox31, checkBox32 };
            damageChecks = new CheckBox[] { checkBox33, checkBox34 };

            string[] files = Directory.GetFiles(settingPath, "*.txt");
            char[] delimiterChars = { '/', '.' };
            string[] splited;
            filename = new string[files.Length];

            for (int i = 0; i < files.Length; i++)
            {
                splited = files[i].Split(delimiterChars);
                filename[i] = splited[splited.Length - 2];
            }

            totals = new int[filename.Length];
            appearingLogs = new List<int>();
        }
예제 #2
0
        public Quiz()
        {
            InitializeComponent();

            ivf = new ImageViewForm();
            ivf.Show();

            kindChecks    = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4, checkBox5, checkBox6, checkBox7, checkBox8, checkBox9, checkBox10, checkBox11, checkBox12 };
            elementChecks = new CheckBox[] { checkBox24, checkBox23, checkBox22, checkBox21, checkBox20, checkBox19, checkBox18, checkBox17, checkBox26, checkBox25, checkBox16, checkBox15, checkBox14, checkBox13, checkBox27, checkBox28 };
            updateChecks  = new CheckBox[] { checkBox29, checkBox30, checkBox31, checkBox32 };
            damageChecks  = new CheckBox[] { checkBox33, checkBox34 };

            string[] files          = Directory.GetFiles(settingPath, "*.txt");
            char[]   delimiterChars = { '/', '.' };
            string[] splited;
            filename = new string[files.Length];

            for (int i = 0; i < files.Length; i++)
            {
                splited     = files[i].Split(delimiterChars);
                filename[i] = splited[splited.Length - 2];
            }

            totals        = new int[filename.Length];
            appearingLogs = new List <int>();
        }