private void siguiente()
        {
            FormOperacionesAjustarFavorita nueva = new FormOperacionesAjustarFavorita(dataGridView_favoritas.SelectedRows[0].Cells[0].Value.ToString(), textBox_buscar.Text);

            nueva.Show();
            this.Close();
        }
示例#2
0
        private void button_nuevaOperacion_Click(object sender, EventArgs e)
        {
            this.Close();

            FormOperacionesAjustarFavorita existe = Application.OpenForms.OfType <FormOperacionesAjustarFavorita>().Where(pre => pre.Name.Contains("FormOperacionesAjustarFavorita")).SingleOrDefault <FormOperacionesAjustarFavorita>();

            if (existe != null)
            {
                existe.Close();
                FormOperacionesEleccionFavorita nueva = new FormOperacionesEleccionFavorita(id_comunidad_cargado, textobuscar);
                nueva.Show();
            }
            else
            {
                FormOperacionesEleccionFavorita nueva = new FormOperacionesEleccionFavorita(id_comunidad_cargado, textobuscar);
                nueva.Show();
            }
        }