Skip to content

Instantly share code, notes, and snippets.

@djvita
Last active August 29, 2015 14:00
Show Gist options
  • Save djvita/11256244 to your computer and use it in GitHub Desktop.
Save djvita/11256244 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Text;
///<summary>
/// its just everything instanced, nothing is implemented
/// its up to you to design and crate functions.
///</summary>
namespace Softtek.Academia.CursoDotNet.Ejercicio2{ //name of the DLL
//Contoller class
public class Program:ProgramaDeConsola
{
//main, controls the process of start, process and finish
public static void Main(string[] args)
{
Iniciar();
Procesar();
Terminar();
}
}
//console class
public partial class ProgramaDeConsola
{
#region Metodos
public static void Iniciar(){
return;
}
public static void Procesar(){
return;
}
public static void Terminar(){
return;
}
#endregion
}
//screen VIEW class
public partial class CP_Pantalla
{
#region Metodos
//read the input
public string LeerEntrada()
{
string palabra="";
return palabra;
}
//show the output
public void MostrarSalida(string salida)
{
return;
}
//validate input
public bool ValidarEntrada(string entrada1)
{
bool validat= true;
return validat;
}
#endregion
}
//Business Module MODEL
public partial class CN_ModuloDeNegocio
{
//methods
public string Metodo1(string parametro)
{
string a="";
return a;
}
public int MetodoN(string parametro)
{
int i=0;
return i;
}
}
//data module
public partial class CD_ModuloDeDatos
{
//takes as a parameter and returns objects from the business entity class
public EntidadDeNegocio Metodo1(string parametro)
{
EntidadDeNegocio negocio = new EntidadDeNegocio();
return negocio;
}
public string MetodoN(string parametro)
{
string a="";
return a;
}
}
//business entity
public partial class EntidadDeNegocio
{
//attibutes or properties
public string Propiedad1;
public int PropiedadN;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment