private void Button_Click_1(object sender, RoutedEventArgs e) { AddAccountWindow newWindow = new AddAccountWindow(false, null); newWindow.addAccount += new AddAccountWindow.addAccountHandler(AddNewAccountSuccess); newWindow.ShowDialog(); }
private void SetSalaryMenuItem_Click(object sender, RoutedEventArgs e) { Object t = lvListStaff.SelectedItem; if (t == null) { MessageBox.Show("Chọn tài khoản muốn cập nhật !"); return; } AddAccountWindow newAddWind = new AddAccountWindow(true, t); newAddWind.ShowDialog(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { //int idPerson = new Random().Next(); //PERSON per = new PERSON() {ID= idPerson, NOTE= "Người dùng bình thường"}; //PERSONINFOR perinf = new PERSONINFOR() { //}; //USERAPP us = new USERAPP() { }; //ACCOUNT acc = new ACCOUNT() { }; //UserBUS.Insert(us); //PersonBUS.Insert(per); //PersonInforBUS.Insert(perinf); //AccountBUS.Insert(acc); AddAccountWindow newWindow = new AddAccountWindow(); newWindow.addAccount += new AddAccountWindow.addAccountHandler(AddNewAccountSuccess); newWindow.ShowDialog(); }