public MainForm(string userName, ref BankingApplication application) { InitializeComponent(); InitializeDataGridView(); bankingApplication = application; this.userName = userName; }
public Login_form() { InitializeComponent(); this.authenticate = new Authenticate(); this.application = new BankingApplication(); // initializing bank app initializes new users.// }