示例#1
0
        private void listView1_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                int            i   = listView1.SelectedIndices[0];
                frmtipoequipos frm = new frmtipoequipos(this.listView1.Items[i].Text);

                frm.ShowDialog();
            }
            catch (Exception)
            {
                MessageBox.Show("Señale el tipo de Equipo", Application.ProductName.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
示例#2
0
        protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData)
        {
            //if ((!this.dataGridView1.Focused)) return base.ProcessCmdKey(ref msg, keyData);
            //if (keyData != Keys.Enter) return base.ProcessCmdKey(ref msg, keyData);
            //DataGridViewRow row = this.dataGridView1.CurrentRow;
            //frmclientesdet fr = new frmclientesdet(row.Cells["cod"].Value.ToString());
            //fr.Show();


            if ((!this.listView1.Focused))
            {
                return(base.ProcessCmdKey(ref msg, keyData));
            }
            if (keyData != Keys.Enter)
            {
                return(base.ProcessCmdKey(ref msg, keyData));
            }
            int            i   = listView1.SelectedIndices[0];
            frmtipoequipos frm = new frmtipoequipos(this.listView1.Items[i].Text);

            frm.ShowDialog();
            return(true);
        }
示例#3
0
        private void toolStripButton8_Click(object sender, EventArgs e)
        {
            frmtipoequipos frm = new frmtipoequipos();

            frm.ShowDialog();
        }