private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { if (tabControl1.SelectedIndex == 0) { Form frm = new dataview(this); frm.TopLevel = false; frm.Show(); frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); } if (tabControl1.SelectedIndex == 1) { Form frm = new picprocessing(this); frm.TopLevel = false; frm.Show(); frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); } if (tabControl1.SelectedIndex == 2) { Form frm = new datacorrelation(this); frm.TopLevel = false; frm.Show(); frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); } }
////打开相关性分析界面 private void btncor_Click(object sender, EventArgs e) { Form frm = new datacorrelation(this); frm.TopLevel = false; frm.Show(); frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); }
//重置选择 private void button2_Click(object sender, EventArgs e) { //cmbtype.SelectedIndex = -1; //cmbfile.Items.Clear(); //clbbands.Items.Clear(); //cmbpara.Items.Clear(); //dataGridView1.DataSource = null; Form frm = new datacorrelation(fm1); frm.TopLevel = false; frm.Show(); frm.Dock = DockStyle.Fill; panel2.Controls.Clear(); panel2.Controls.Add(frm); }