Run Code
|
API
|
Code Wall
|
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
Task 2
C++ lesson
Type win
Exception-Nikhil
Tests
compiled prog
Swap numbers without the third variable using the XOR operator
Bitcoins expectative :'v
TotalHours FromTicks
work_laba#2