Example #1
0
 public void runtimesage()
 {
     runtimessage = model.GetHistoryrun();
     if (schememessage.Count == 3)
     {
         InitDraw();
     }
 }
Example #2
0
        public void RunMessage()
        {
            runtime = model.GetHistoryrun();
            string str = "you cloose:";

            for (int i = 0; i < runtime.Count; i++)
            {
                str += "历史记录的第" + runtime[i] + "次:";
            }
            str += "\n";
            textBox1.AppendText(str);
        }
        private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (model.GetLateNameStatus().Count != 3 || model.GetHistoryrun().Count != 1)
            {
                MessageBox.Show("请选中分析对象和运行次数", "温馨提示", MessageBoxButtons.OK);
                return;
            }
            string strTreeNodeText = e.Node.Text;

            switch (strTreeNodeText)
            {
            case "基本分析":
                BasicalDataAnalyzeMain basicalDataAnalyzeWnd = new BasicalDataAnalyzeMain();
                basicalDataAnalyzeWnd.Show();
                basicalDataAnalyzeWnd.MdiParent = this;
                break;

            case "简单线性回归":
                AssociatedAtrributionForm associatedAtrributionForm = new AssociatedAtrributionForm();
                associatedAtrributionForm.ShowDialog();
                if (associatedAtrributionForm.DialogResult == (DialogResult.OK))
                {
                    AsscociationAnalyzeMain asscociationAnalyzeMain = new AsscociationAnalyzeMain();
                    asscociationAnalyzeMain.Show();
                    asscociationAnalyzeMain.MdiParent = this;
                }

                break;

            case "关联":
                DigAssociationAnalyzeMain digAssociationAnalyzeMain = new DigAssociationAnalyzeMain();
                digAssociationAnalyzeMain.Show();
                digAssociationAnalyzeMain.MdiParent = this;
                break;

            case "时域分析":
                SimulatingStatisticsAnalyzeMain simulatingStatisticsAnalyzeMain = new SimulatingStatisticsAnalyzeMain();
                simulatingStatisticsAnalyzeMain.Show();
                simulatingStatisticsAnalyzeMain.MdiParent = this;
                break;

            case "分类":
                ClassifyMain classifyMain = new ClassifyMain();
                classifyMain.Show();
                classifyMain.MdiParent = this;
                break;

            default:
                break;
            }
        }