Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
form
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 tinhtiendien { public partial class TinhTienDien : Form { public TinhTienDien() { InitializeComponent(); } private void btnThem_Click(object sender, EventArgs e) { string hoten = txtHoten.Text; string diachi = txtDiachi.Text; string macongto = txtMacongto.Text; if (hoten.Equals("") || txtSdt.Text.Equals("") || diachi.Equals("") || txtChisotieuthu.Text.Equals("") || macongto.Equals("")) { MessageBox.Show("Khong duoc de trong"); } else { DateTime ngaylapdat = Convert.ToDateTime(txtNgaylapdat.Text); int chisotieuthu = Convert.ToInt32(txtChisotieuthu.Text); DateTime ngaysinh = Convert.ToDateTime(txtNgaysinh.Text); int sdt = Convert.ToInt32(txtSdt.Text); Congtodien ctd = new Congtodien(hoten, ngaysinh, sdt, diachi, macongto, chisotieuthu, ngaylapdat); listbox.Items.Add(ctd.ToString()); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
How to Count Occurrences of a Word in a String (LINQ) (C#)
Enumerate an enum?
SunLocation
10
ref variables/parameters
saira_pr1.c
MVC Learning
Set Get
Const
Vídeo01 - Main
Please log in to post a comment.