示例#1
0
        private void Contactos_Grid_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                switch (e.ColumnIndex)
                {
                case 2:
                {
                    CargoUIForm form = new CargoUIForm(true);
                    if (form != null && !form.IsDisposed)
                    {
                        form.ShowDialog();
                    }
                    break;
                }

                case 6:
                {
                    MunicipioUIForm form = new MunicipioUIForm(this);
                    if (form != null && !form.IsDisposed)
                    {
                        form.ShowDialog();
                    }
                    break;
                }
                }
            }
        }
示例#2
0
        private void Municipios_Button_Click(object sender, EventArgs e)
        {
            MunicipioUIForm form = new MunicipioUIForm(this);

            if (form != null && !form.IsDisposed)
            {
                form.ShowDialog();
            }
        }
示例#3
0
 private void Municipio_CB_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode.Equals(Keys.Add) || e.KeyCode.Equals(Keys.Oemplus))
     {
         MunicipioUIForm form = new MunicipioUIForm(this);
         if (form != null && !form.IsDisposed)
         {
             form.ShowDialog();
         }
         Municipio_CB.ResetText();
     }
 }