//方案名,成员,属性 public List <string> InitializeCaseInfo() { List <string> list = model.GetLateNameStatus(); List <string> listPre = new List <string>(); listPre.Add((list.Count - 1).ToString());// listPre.Add("方案名称"); listPre.Add(list[0]); // listPre.Add("属性"); for (int i = 1; i + 1 < list.Count; i = i + 2) { listPre.Add("成员-属性"); listPre.Add(list[i] + "-" + list[i + 1]); } string anotherAttribute = model.getAssociatedAttibuteName(); if (!anotherAttribute.Equals("")) { listPre.Add("成员-属性"); listPre.Add(list[1] + "-" + anotherAttribute); listPre[0] = (Int32.Parse(listPre[0]) + 1).ToString(); } return(listPre); }
public void Message() { message = model.GetLateNameStatus(); message.Add(""); message.Add(""); message.Add(""); textBox1.Text = message[0]; textBox2.Text = message[1]; textBox3.Text = message[2]; }
//设置关联的属性集,并由此设置面板属性-------------------- public void setAtrributes() { if (model.getAssociatedAttibuteName() != null) { List <string> states = model.GetLateNameStatus(); attribute1 = states[2]; attribute2 = model.getAssociatedAttibuteName(); this.xText = attribute1; this.yText = attribute2; this.title = this.yText + "-" + this.xText; } }
public void Message() { message = model.GetLateNameStatus(); string str = "you cloose:"; for (int i = 0; i < message.Count; i++) { str += message[i]; str += ":"; } 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; } }
private void startButton_Click(object sender, EventArgs e) { // string anoAttributeId = model.getAssociatedAttibuteId(); string anoAttributeName = model.getAssociatedAttibuteName(); string reqStr = "";//拼接请求字符串:方案名-运行次数-成员名-属性1(x)-属性二(y)…………………………………………………………………………………… double[] results = getRelations(reqStr); if (results != null) { this.fomulationTextBox.Text = "Y=" + results[0] + "* X +" + results[2]; List <string> str = model.GetLateNameStatus(); this.XYInfoTextBox.Text = "Y:" + anoAttributeName + " X:" + str[2]; //不确定获取第一个属性***************************** } model.setlinearResults(results); agent.informZedGetCoff(); }
//传递过来的信息 public void SchemeMessage() { schememessage = model.GetLateNameStatus(); }