C sharp - Ayuda Formulario C#

 
Vista:

Ayuda Formulario C#

Publicado por matias (1 intervención) el 12/09/2014 02:16:04
Hola amigos primer tema que creo, necesito una ayuda resulta que estoy haciendo un formulario de Ventas, tengo tres Windows Forms. en el Forms de Ventas necesito agarrar los datos de mi otro Forms que se llama Cliente

1
2
3
4
5
6
7
8
9
10
11
12
public struct cliente
{
public string rut;
public string nom;
public string dir;
public string com;
public string foto;
}
 
 
 
public static cliente[] cli = new cliente[10];


Esos datos necesito llevarlos al Forms de Ventas

Necesito su ayuda de antemano Gracias!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

Ayuda Formulario C#

Publicado por walter_100 (16 intervenciones) el 12/09/2014 06:57:02
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
class Cliente
    {
        private string rut;
 
        public string Rut
        {
            get { return rut; }
            set { rut = value; }
        }
        private string nom;
 
        public string Nom
        {
            get { return nom; }
            set { nom = value; }
        }
        private string dir;
 
        public string Dir
        {
            get { return dir; }
            set { dir = value; }
        }
        private string com;
 
        public string Com
        {
            get { return com; }
            set { com = value; }
        }
        private string foto;
 
        public string Foto
        {
            get { return foto; }
            set { foto = value; }
        }
 
        public void Cliente(string ruta, string nombre, string direct, string Comm, string foto)
        {
            rut = ruta;
            nom = nombre;
            dir = direct;
            com = Comm;
            Foto = foto;
        }
 
    }
}

----------------------------------------------------
Asi, instancias y haces la referencias a las propiedades de la clase. En cualquier form

1
2
3
4
Cliente Cli = new Cliente();
Cli.Nom = "";
Cli.Rut = "";
Cli.Com = "";

Saludos Walter.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar