Ejemplo n.º 1
0
        //================================================================================
        void ButOkClick(object sender, EventArgs e)
        {
            int    type = 0;
            string text = "";

            if (optAll.Checked)
            {
                type = CajApp.NULL_TYPE_ALL;
                text = "";
            }
            else if (optAllExcept.Checked)
            {
                type = CajApp.NULL_TYPE_ALL_EXCEPT;
                text = txtList.Text;
            }
            else if (optOnly.Checked)
            {
                type = CajApp.NULL_TYPE_ONLY;
                text = txtList.Text;
            }

            int    numKeepEmitters = 0;
            String s = CajApp.config.read(CajConfig.keyKeepEmitters);

            if (s != "")
            {
                numKeepEmitters = int.Parse(s);
            }

            CajApp.nullEffects(type, text, numKeepEmitters);

            this.Hide();
        }