
ayuda sobre un error en mi codigo fuente
Publicado por luis fernando (3 intervenciones) el 25/05/2018 19:04:41
buenas tardes quien me puede ayudar con este erro que se me presenta en este codigo fuente adjunto arhivo del codigo :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CapaAnalisis;
namespace CapaPresentacion
{
public partial class FrmCategoria : Form
{
private bool IsNuevo = false;
private bool IsEditar = false;
public FrmCategoria()
{
InitializeComponent();
this.ttMensaje.SetToolTip(this.txtNombre, "Ingrese el Nombre de la Categoria");
}
//Mostrar Mensaje de Confirmacion
private void MensajeOK(string mensaje)
{
MessageBox.Show(mensaje, "Sistemas de analisis",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
//Mostrar Mensaje de Error
private void MensajeError(string mensaje)
{
MessageBox.Show(mensaje, "Sistemas de analisis", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
//Limpiar todos los controles del formulario
private void Limpiar ()
{
this.txtNombre.Text = string.Empty;
this.txtDescripcion.Text = string.Empty;
this.txtIdcategoria.Text = string.Empty;
}
//Habilitar los controles del formulario
private void Habilitar (bool valor)
{
this.txtNombre.ReadOnly = !valor;
this.txtDescripcion.ReadOnly = !valor;
this.txtIdcategoria.ReadOnly = !valor;
}
//Habilitar los Botones del formulario
private void Botones (bool valor)
{
if (this.IsNuevo || this.IsEditar)
this.Habilitar(true);
this.btnNuevo.Enabled = false;
this.btnGuardar.Enabled = true;
this.btnEditar.Enabled = false;
this.btnCancelar.Enabled = true;
}
else(Error El token 'else' no es válido en una claese, un struct o una declaración de miembro de interfaz.
{
}
private void FrmCategoria_Load(object sender, EventArgs e)
{
}
}
}
Valora esta pregunta


0