示例#1
0
        public Tuple <int, int, double> GeneratAccount()
        {
            Random rand = new Random();
            double val  = 0;

            this.AccountNumber = rand.Next(1000000, 10000000);
            this.Pin           = rand.Next(0, 10000);
            Console.WriteLine("Your Pin is:{0}", this.Pin);
            Console.WriteLine("Enter summ wich you want put on account\n");
            val       = Convert.ToDouble(Console.ReadLine());
            this.User = new account(this.AccountNumber, this.Pin, val);
            Console.Clear();
            return(Tuple.Create(this.AccountNumber, this.Pin, val));
        }
示例#2
0
 public Client()
 {
     this.info = new account();
 }