Ejemplo n.º 1
0
        private void Primenit_Click(object sender, EventArgs e)
        {
            factory = new LogExpFactory();
            int n_fields = FieldTypeCol.getS();

            for (int i = 0; i < n_fields; ++i)
            {
                bool[] mark        = new bool[4];
                int    n_radio_but = -1;

                for (int k = 0; k < 4; ++k)
                {
                    mark[k] = radio_buttons[i, k].Checked;
                    if (mark[k])
                    {
                        n_radio_but = k + 1;
                    }
                }

                if (enables[i].Checked == false && (n_radio_but != -1))
                {
                    factory.add_filter(names[i].Text, text_boxs[i].Text, names[i].Name, n_radio_but);
                }
            }

            filter_controler.sort(factory.get_filters());
            this.Close();
        }