Exemple #1
0
        private void appear(object sender, FormClosedEventArgs e)
        {
            if (conData.State == 0)
            {
                newCompareToolStripMenuItem.Enabled = true;
            }
            else if (conData.State == 1)
            {
                if (ts.IsDisposed)
                {
                    ts.Dispose();
                    callTsForm();
                }
                ts.Text      = new splitWord(conData.PathPj, "\\", "End").Nword + " - Testing Set";
                ts.MdiParent = this;
                ts.Show();
            }
            else if (conData.State == 2)
            {
                if (tr.IsDisposed)
                {
                    tr.Dispose();
                    callTrForm();
                }
                tr.Text      = new splitWord(conData.PathPj, "\\", "End").Nword + " - Training Set";
                tr.MdiParent = this;
                tr.Show();
            }
            else if (conData.State == 3)
            {
                if (al.IsDisposed)
                {
                    al.Dispose();
                    callAlForm();
                }

                al.Text      = new splitWord(conData.PathPj, "\\", "End").Nword + " - Algorithm Set";
                al.MdiParent = this;
                al.Show();
            }
            else if (conData.State == 4)
            {
                pr             = new newCompare_profile_Form(conData.ListTs, conData.ListTr, conData.ListAl, Verify, Path);
                pr.Text        = new splitWord(conData.PathPj, "\\", "End").Nword + " - Profile";
                pr.PathForSave = conData.PathPj;
                pr.setState    = new DgState(conData.getDgState);
                pr.setData     = new DgAllVarResult(conData.getDgAllVarResult);
                pr.setData(conData.ListTs, conData.ListTr, conData.ListAl);
                pr.FormClosed += new FormClosedEventHandler(appear);
                pr.MdiParent   = this;
                pr.Show();
            }
            else if (conData.State == 5)
            {
            }
        }
        private void appear(object sender, FormClosedEventArgs e)
        {
            if(conData.State == 0)
            {
                newCompareToolStripMenuItem.Enabled = true;
            }
            else if (conData.State == 1)
            {
                if (ts.IsDisposed)
                {
                    ts.Dispose();
                    callTsForm();
                }
                ts.Text = new splitWord(conData.PathPj, "\\", "End").Nword + " - Testing Set";
                ts.MdiParent = this;
                ts.Show();
            }
            else if (conData.State == 2)
            {
                if (tr.IsDisposed)
                {
                    tr.Dispose();
                    callTrForm();
                }
                tr.Text = new splitWord(conData.PathPj, "\\", "End").Nword + " - Training Set";
                tr.MdiParent = this;
                tr.Show();
            }
            else if (conData.State == 3)
            {
                if (al.IsDisposed)
                {
                    al.Dispose();
                    callAlForm();
                }

                al.Text = new splitWord(conData.PathPj, "\\", "End").Nword + " - Algorithm Set";
                al.MdiParent = this;
                al.Show();
            }
            else if (conData.State == 4)
            {
                pr = new newCompare_profile_Form(conData.ListTs, conData.ListTr, conData.ListAl, Verify, Path);
                pr.Text = new splitWord(conData.PathPj, "\\", "End").Nword + " - Profile";
                pr.PathForSave = conData.PathPj;
                pr.setState = new DgState(conData.getDgState);
                pr.setData = new DgAllVarResult(conData.getDgAllVarResult);
                pr.setData(conData.ListTs, conData.ListTr, conData.ListAl);
                pr.FormClosed += new FormClosedEventHandler(appear);
                pr.MdiParent = this;
                pr.Show();
            }
            else if (conData.State == 5)
            {

            }
        }