public override void Draw(Render renderer) { Console.Clear(); renderer.WriteAt("Add Customer", 0, 0); renderer.WriteAt("Name: ", 0, 2); renderer.WriteAt("Social Sequrity Number: ", 0, 3); }
public void Draw(Render renderer) { renderer.WriteAt("Please log in", 0, 0); renderer.WriteAt("Username: "******"Password: "******"" && passWord != "") { renderer.WriteAt("Is this correct? (Y)es (N)o", 0, 5); renderer.WriteAt("", 0, 6); } }
public virtual bool InputValue(Render renderer = null) { if (currInputField == InputFields.USERNAME) { renderer.WriteAt("", 10, 2); userName = Console.ReadLine(); currInputField = InputFields.PASSWORD; renderer.WriteAt("", 10, 3); } else if (currInputField == InputFields.PASSWORD) { renderer.WriteAt("", 10, 3); passWord = Console.ReadLine(); currInputField = InputFields.OTHER; //return true; } return(ActionButtonPressed(Console.ReadKey().Key)); }
public override bool InputValue(Render renderer) { if (currentInputField == InputFields.Name) { renderer.WriteAt("", 10, 2); name = Console.ReadLine(); currentInputField = InputFields.SocialSequrityNumber; } else if (currentInputField == InputFields.SocialSequrityNumber) { renderer.WriteAt("", 10, 3); socialSequrityNumber = Console.ReadLine(); currentInputField = InputFields.Other; } else { renderer.WriteAt("(A)dd Customer or (R)eset values", 0, 6); return(ActionButtonPressed(Console.ReadKey().Key)); } return(false); }
public virtual void Draw(Render renderer) { renderer.WriteAt("Available Actions", 0, 0); renderer.WriteAt("Add (C)ustomer ", 0, 2); renderer.WriteAt("Add Animal and Add Customer", 0, 3); renderer.WriteAt("Add Animal to (E)xisting Customer", 0, 4); renderer.WriteAt("(V)iew Customers", 0, 5); renderer.WriteAt("Log (O)ut", 0, 6); }