Beispiel #1
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.Closing = CloseVisual;
                    vis.SClusters(name, dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[2].Value.ToString(), null);
                }
            }
        }
Beispiel #2
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.Closing = CloseVisual;
                vis.SClusters(name, cell[2].Value.ToString(), item.Text);
                // cell[cell.Count - 1].Value = vis.ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: " + ex.Message);
            }
        }
Beispiel #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.Closing = CloseVisual;
             vis.SClusters(name, cell[2].Value.ToString(), item.Text);
            // cell[cell.Count - 1].Value = vis.ToString();
         
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error: " + ex.Message);
     }
     
 }
Beispiel #4
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.Closing = CloseVisual;
                        vis.SClusters(name, dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Cells[2].Value.ToString(),null);
                    
                }
             }
        }