public void PrintClient(clsAbsClients client) { StreamWriter ar = new StreamWriter(@"C:\Users\Cesar\source\repos\ConsoleApp7\FileBinnacle.log", true); ar.WriteLine(client.Pin + " " + client.Name); if (client.RegimentType == 1) { ar.WriteLine("Type: Physical Person"); } else { ar.WriteLine("Type: Morar Person"); } ar.WriteLine("RFC: " + client.RFC); ar.Close(); }
public void PrintClient(clsAbsClients client) { Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(client.Pin + " " + client.Name); if (client.RegimentType == 1) { Console.WriteLine("Type: PHYSICAL PERSON"); } else { Console.WriteLine("Type: MORAL PERSON"); } Console.WriteLine(client.RFC); Console.ReadKey(); }