//Tools private void ToolAgregarSocio_Click(object sender, EventArgs e) { FormIngSoc fis = new FormIngSoc(0); fis.MdiParent = this; fis.StartPosition = FormStartPosition.CenterScreen; fis.Show(); }
private void BotonAceptar_Click(object sender, EventArgs e) { if (IngCodSoc.Text == "") { MessageBox.Show("Ingrese el código del socio!"); } else { int auxcs = Convert.ToInt32(IngCodSoc.Text); int i = Program.slogic.ObtenerSocio(auxcs, Program.lsocio); if (Program.slogic.ComprobarSocio(auxcs, Program.lsocio)) { switch (opc) { case 1: Program.lsocio.RemoveAt(i); MessageBox.Show("Socio Borrado correctamente!"); break; case 2: FormIngSoc fis = new FormIngSoc(auxcs); fis.MdiParent = menu; fis.StartPosition = FormStartPosition.CenterScreen; fis.Show(); break; default: this.Close(); break; } IngCodSoc.ResetText(); ListSoc.Items.Clear(); } else { MessageBox.Show("Código socio desconocido!"); } } }