fixed vc# tree
This commit is contained in:
parent
220f57808c
commit
1cc7f5f085
113 changed files with 323 additions and 0 deletions
43
DBMS/C-Sharp/Lab/Week2/Banker/Banker/Form1.cs
Normal file
43
DBMS/C-Sharp/Lab/Week2/Banker/Banker/Form1.cs
Normal file
|
@ -0,0 +1,43 @@
|
|||
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue