?? form8.cs
字號:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Project1
{
public partial class formDeposit : Form
{
//Account account = new Account();
public formDeposit()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
//BankOperationsFactory.getBankOperationsInstance().deposit(Int32.Parse(txtAccNo.Text), Double.Parse(txtAmount.Text));
//bankOpera.deposit();
Account Acc = AccountDatabaseFactory.getDatabaseInstance().search(Int32.Parse(txtAccNo.Text));
if (Acc != null)
{
txtAccNo.Text = Acc.iAcNo.ToString();
txtCustID.Text = Acc.sCustID;
txtCustName.Text = "jjk";
txtAccType.Text = Acc.sAcType;
txtDate.Text = DateTime.Today.ToShortDateString();
txtAmount.Text = Acc.dBalance.ToString();
}
else
{
MessageBox.Show("can not find the record");
}
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
}
private void formDeposit_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
this.Dispose();
formInfyBank f2 = new formInfyBank();
f2.Show();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -