private void Build_NM_MDS_Matrix(string selection, int k_dim, double p, string file) { if (selection == "kruskal") { if (nm_krusk_tab == false) { Tab_MDS tab_content = new Tab_MDS(file, selection, k_dim); this.work_tab.Items.Add(new TabItem { Header = "MDS Kruskal", Content = tab_content, IsSelected = true, TabIndex = 3 }); nm_krusk_tab = true; mds_tabs[2] = (tab_content); } else { mds_tabs[2].BuildMatrix(file, selection, k_dim); //work_tab.SelectedItem = work_tab.Items[1]; Доделать } } if (selection == "sammon") { if (nm_sam_tab == false) { Tab_MDS tab_content = new Tab_MDS(file, selection, k_dim, p); this.work_tab.Items.Add(new TabItem { Header = "MDS Sammon", Content = tab_content, IsSelected = true, TabIndex = 4 }); nm_sam_tab = true; mds_tabs[3] = (tab_content); } else { mds_tabs[3].BuildMatrix(file, selection, k_dim); //work_tab.SelectedItem = work_tab.Items[2]; Доделать } } }
private void Build_MDS_Matrix(string selection, int k_dim, double p, string file) { if (selection == "euclidean") { if (m_eu_tab == false) { Tab_MDS tab_content = new Tab_MDS(file, selection, k_dim); this.work_tab.Items.Add(new TabItem { Header = "MDS Euclidian", Content = tab_content, IsSelected = true, TabIndex = 1 }); m_eu_tab = true; mds_tabs[0] = (tab_content); } else { mds_tabs[0].BuildMatrix(file, selection, k_dim); //work_tab.SelectedItem = work_tab.Items[1]; Доделать } } if (selection == "minkowski") { if (m_mink_tab == false) { Tab_MDS tab_content = new Tab_MDS(file, selection, k_dim, p); this.work_tab.Items.Add(new TabItem { Header = "MDS minkowski", Content = tab_content, IsSelected = true, TabIndex = 2 }); m_mink_tab = true; mds_tabs[1] = (tab_content); } else { mds_tabs[1].BuildMatrix(file, selection, k_dim); //work_tab.SelectedItem = work_tab.Items[2]; Доделать } } }