private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            PageDangNhap dn = new PageDangNhap();

            dn.ShowInTaskbar = false;
            dn.ShowDialog();
        }
        private void btndangxuat_Click(object sender, RoutedEventArgs e)
        {
            btnkhuvuc.IsEnabled   = false;
            btnban.IsEnabled      = false;
            btnthucdon.IsEnabled  = false;
            btngiamgia.IsEnabled  = false;
            btnthongke.IsEnabled  = false;
            btntaikhoan.IsEnabled = false;
            btnphucvu.IsEnabled   = false;
            btndangxuat.IsEnabled = false;
            btnthoat.IsEnabled    = false;
            PageDangNhap dn = new PageDangNhap();

            dn.ShowDialog();
        }
Exemple #3
0
 public PageDangNhap()
 {
     InitializeComponent();
     dn = this;
     txttendangnhap.Focus();
 }