Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DataGridViewCellCollection cell = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells;
            string          name            = (string)cell[0].Value;
            ClusterGraphVis vis             = new ClusterGraphVis(manager.clOutput[name], name, manager.clOutput);

            vis.SClusters(name, cell[2].Value.ToString(), "");;
        }
Пример #2
0
        private void menuClick()
        {
            if (dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].DefaultCellStyle.ForeColor == Color.Green)
            {
                DataGridViewCellCollection cell = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells;
                string name = (string)cell[0].Value;
                //if(cell[cell.Count-1].Value!=null)
                // name = (string)cell[cell.Count-1].Value;

                if (manager.clOutput.ContainsKey(name))
                {
                    ClusterGraphVis vis = new ClusterGraphVis(manager.clOutput[name], name);
                    vis.SClusters(name, dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[2].Value.ToString(), null);
                }
            }
        }
Пример #3
0
        private void SubMenuClick(object sender, EventArgs e)
        {
            ToolStripItem item = sender as ToolStripItem;

            try
            {
                DataGridViewCellCollection cell = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells;
                string          name            = (string)cell[0].Value;
                ClusterGraphVis vis             = new ClusterGraphVis(manager.clOutput[name], name, manager.clOutput);
                vis.SClusters(name, cell[2].Value.ToString(), item.Text);
                // cell[cell.Count - 1].Value = vis.ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: " + ex.Message);
            }
        }