private void bunifuFlatButton3_Click(object sender, EventArgs e) { String username = bunifuMaterialTextbox1.Text; String password = bunifuMaterialTextbox2.Text; Nguoidung nguoidung = new Nguoidung(username, password); if (bus_nguoidung.checkNguoidung(nguoidung)) { HomeForm homeform = new HomeForm(); this.Hide(); homeform.Show(); } else { MessageBox.Show("Please input again!!!!"); } }
private void bunifuFlatButton4_Click(object sender, EventArgs e) { String username = bunifuMaterialTextbox3.Text; String password = bunifuMaterialTextbox4.Text; String cellnumber = bunifuMaterialTextbox5.Text; int experience = 1; Nguoidung nguoidung = new Nguoidung(username, password, cellnumber, experience); if (bus_nguoidung.addUser(nguoidung)) { MessageBox.Show("SUCESSFULLY!!!"); } else { MessageBox.Show("Please insert again!!!"); } }
void Process() { //Ngay NgayGui = new Ngay(dtpNgayGui.Value.Day, dtpNgayGui.Value.Month, dtpNgayGui.Value.Year); //Ngay NgayRut = new Ngay(dtpNgayRut.Value.Day, dtpNgayRut.Value.Month, dtpNgayRut.Value.Year); //double SoThangGui = NgayGui.TinhKhoangCachGiua2Moc(NgayRut); try { Nguoidung peo = new Nguoidung( double.Parse(txtTienGui.Text), cmbHinhThucGui.SelectedIndex, dtpNgayGui.Value, dtpNgayRut.Value); //Dung Het txtResult.Text = "Lai Xuat :" + peo.TinhTienLai().ToString(); txtResult.Text += "\r\n Tong Tien :" + (double.Parse(txtTienGui.Text) + peo.TinhTienLai()).ToString(); } catch { MessageBox.Show("Eror..!Kiem Tra Lai Tien Gui.."); } }