Exemplo n.º 1
0
        //================================================================================
        private 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 = CajApp.config.readInt(CajConfig.keyKeepEmitters, 0);

            this.Hide();

            CajApp.nullEffectsButtonAction(type, text, numKeepEmitters);
        }