Example #1
0
        public Transfer(string Pin, ATMManager ATMM)
        {
            _pin = Pin;
            _atmm = ATMM;

            InitializeComponent();
        }
Example #2
0
 public Managerui(string incPin)
 {
     ATMManager atmm = new ATMManager();
     _Pin = incPin;
     _atmm = atmm ;
     atmm.ReadAccounts();
     InitializeComponent();
 }
Example #3
0
File: Form1.cs Project: jpj09/ATM
        private void button1_Click(object sender, EventArgs e)
        {
            string path = @"c:\Customers.txt";

                StreamReader sr = new StreamReader(path);
                {
                    string str = sr.ReadLine();

                    while (str != null)
                    {
                        string[] password = str.Split(',');

                        _userName = password[0];
                        _loginPin = password[1];

                        //if (_userName == "Admin" && _loginPin == "Admin")
                        //{
                        //    ATMManager atmm = new ATMManager();
                        //    atmm.ReadAccounts();

                        //    AdminForm ad = new AdminForm(atmm);
                        //    ad.Show();

                        //}

                        if (_loginPin == PassWordtextBox.Text && _userName == UserNametextBox.Text)
                        {

                            if (_userName == "Admin" && _loginPin == "Admin")
                            {
                                ATMManager atmm = new ATMManager();
                                atmm.ReadAccounts();

                                AdminForm ad = new AdminForm(atmm);
                                ad.Show();
                                this.Hide();
                            }

                            else
                            {
                                Managerui mui = new Managerui(_loginPin);
                                mui.Show();
                                this.Hide();
                            }

                        }
                        str = sr.ReadLine();
                    }
                    sr.Close();
                }
        }
Example #4
0
File: Deposit.cs Project: jpj09/ATM
 public Deposit(string InccPin, ATMManager ATMM )
 {
     _pin = InccPin;
     _atmm = ATMM;
     InitializeComponent();
 }
Example #5
0
        public AdminForm(ATMManager ATMM)
        {
            _atmm = ATMM ;

            InitializeComponent();
        }
Example #6
0
 public WithDraw(string InccPin, ATMManager ATMM)
 {
     _pin = InccPin;
     _atmm = ATMM;
     InitializeComponent();
 }
Example #7
0
File: PayBill.cs Project: jpj09/ATM
 public PayBill(string Pin, ATMManager ATMM)
 {
     _pin = Pin;
     _atmm = ATMM;
     InitializeComponent();
 }