示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            AltaNodo aux = new AltaNodo();

            aux.enlace = new Enlace();
            aux.ShowDialog();
            if (aux.guardar)
            {
                nodo.enlaces.Add(aux.enlace);
                cambios = true;
            }
        }
示例#2
0
        private void btCarpeta_Click(object sender, EventArgs e)
        {
            AltaNodo aux = new AltaNodo();

            aux.carpeta = new Carpeta();

            aux.ShowDialog();
            if (aux.guardar)
            {
                nodo.carpetas.Add(aux.carpeta);
                cambios = true;
            }
        }
示例#3
0
        private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex > -1 && e.Button == MouseButtons.Left)
            {
                Process.Start(dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString());
            }


            if (e.RowIndex > -1 && e.Button == MouseButtons.Right)
            {
                AltaNodo aux = new AltaNodo();
                aux.enlace = buscarEnlace(dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString());
                aux.ShowDialog();
                if (aux.guardar)
                {
                    cambios = true;
                }
            }
        }