MIT-Curricular/DBMS/C-Sharp/Lab/Week2/Banker/Banker/Form1.cs
2025-02-10 13:18:49 +05:30

43 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Banker
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
label2.Text = "Your password will be kept secure";
}
private void button1_Click(object sender, EventArgs e)
{
string username = textBox1.Text;
string password = textBox2.Text;
decimal initialBalance = 1000000;
Customer customer = new Customer(username, password, initialBalance);
Form2 f2 = new Form2(customer);
f2.Show();
this.Hide();
}
private void label3_Click(object sender, EventArgs e)
{
}
}
}