示例#1
0
        private void dFAToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmDFA dfa = new FrmDFA();

            dfa.MdiParent   = this;
            dfa.WindowState = FormWindowState.Maximized;
            dfa.Show();
        }
示例#2
0
        private void tsbToMinimalDFA_Click(object sender, EventArgs e)
        {
            DFA <string, char> dfa = getDFA();

            if (dfa == null)
            {
                return;
            }
            dfa.MinimaliseDFA();
            FrmDFA frmDfa = new FrmDFA(dfa);

            frmDfa.MdiParent = this.MdiParent;
            frmDfa.Show();
        }
示例#3
0
        private void tsbToNot_Click(object sender, EventArgs e)
        {
            DFA <string, char> dfa = getDFA();

            if (dfa == null)
            {
                tsbToNot.Enabled = false;
                return;
            }

            dfa.Not();
            FrmDFA frmDfa = new FrmDFA(dfa);

            frmDfa.MdiParent = this.MdiParent;
            frmDfa.Show();
        }
示例#4
0
        private void tsbToDFA_Click(object sender, EventArgs e)
        {
            Regram <string, char> regram = getRegram();

            if (regram == null)
            {
                return;
            }

            DFA <MultiState <string>, char> dfa = SearchAlgorithmParser.Converter <string, char> .ConvertToDFA(regram, new SearchAlgorithmParser.MultiStateViewConcat <string>("", "O"));

            FrmDFA frmDfa = new FrmDFA(dfa);

            frmDfa.MdiParent = this.MdiParent;
            frmDfa.Show();
        }