static void Main(string[] args) { ApplicationView view = new ApplicationView(); while (true) { if (Program.currentLoggedInYyAccount != null) { view.GenerateCustomerMenu(); } else { view.GenerateDefaultMenu(); } } // UserName(); //AddProduct(); // Console.OutputEncoding = System.Text.Encoding.UTF8; // Console.InputEncoding = System.Text.Encoding.UTF8; // YYaccountnumber acc = new YYaccountnumber(); // acc.Accountnumber = "123123123"; // acc.Username = "******"; // acc.Password = "******"; // acc.EncryptPassword(); // acc.Balance = 2000; // acc.Address = "haNoi"; // acc.IdentityCard = "3120310"; // acc.Email = "*****@*****.**"; // acc.PhoneNumber = "123123123424"; // acc.Fullname = "phamvan hieu"; // acc.Dob = "2008- 06-10 10:50:25"; // acc.Gender = 1; // model.save(acc); // hieu(); // YYaccountnumber yaccountnumber = new YYaccountnumber() // { // Username = "******", // Balance = -1000 // }; // var errors = ValidateAccount(yaccountnumber); // if (errors.Count == 0) // { // Console.WriteLine("luu vao db"); // } // else // { // Console.WriteLine("vui long fix cac loi duoi day."); // foreach (var error in errors.Values) // { // Console.WriteLine(error); // } // } }
static void Main(string[] args) { ApplicationView view = new ApplicationView(); while (true) { if (Program.currentLoggedInYyAccount != null) { view.GenerateCustomerMenu(); } else { view.GenerateDefaultMenu(); } } }
static void Main(string[] args) { Console.OutputEncoding = System.Text.Encoding.Unicode; Console.InputEncoding = System.Text.Encoding.Unicode; Console.BackgroundColor = System.ConsoleColor.Black; Console.ForegroundColor = System.ConsoleColor.Red; ApplicationView view = new ApplicationView(); while (true) { if (Program.currentLoggedInYyAccount != null) { view.GenerateCustomerMenu(); } else { view.GenerateDefaultMenu(); } } }