Esempio n. 1
0
        private void btnDangXuat_Click(object sender, RoutedEventArgs e)
        {
            DangNhap dangnhap = new DangNhap();

            dangnhap.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //LoaiPhong lp = new LoaiPhong("c", "test", "abcd", 3, 4, 1);
            //txtbox.Text = LoaiPhongDAO.Undrop("c").ToString();
            DichVu dv = new DichVu(7, "test", 111, "abcd", 1);

            txtbox.Text = DichVuDAO.Undrop(7).ToString();

            //DataTable table = LoaiPhongDAO.LoadAll();
            //dataGrid.ItemsSource = table.DefaultView;
            DataTable table = DichVuDAO.LoadAll();

            dataGrid.ItemsSource = table.DefaultView;

            DangNhap dangnhap = new DangNhap();

            dangnhap.Show();
            //DataTable table = LoaiPhongDAO.LoadAll();
            //dataGrid.ItemsSource = table.DefaultView;
        }