private void OpenFunc(object sender, RoutedEventArgs e)
        {
            int value = cbFuncSelect.SelectedIndex;

            if (value == 0)
            {
                frmChucNang.MainWindow GDLoaiPhong = new frmChucNang.MainWindow();

                GDLoaiPhong.Show();
            }
            else if (value == 1)
            {
                frmChucNangThongKe.MainWindow GDThongKe = new frmChucNangThongKe.MainWindow();

                GDThongKe.Show();
            }
            else
            {
                frmChucNang.MainWindow GDLoaiPhong = new frmChucNang.MainWindow(guis[0].GetMainWindow());

                GDLoaiPhong.Show();
            }
        }
예제 #2
0
        private void OpenFunc(object sender, RoutedEventArgs e)
        {
            int value = cbFuncSelect.SelectedIndex;

            if (value == 0)
            {
                frmChucNang.MainWindow GDLoaiPhong = new frmChucNang.MainWindow();

                GDLoaiPhong.Show();
            }
            else if (value == 1)
            {
                frmChucNangThongKe.MainWindow GDThongKe = new frmChucNangThongKe.MainWindow();

                GDThongKe.Show();
            }
            else
            {
                frmChucNang.MainWindow GDLoaiPhong = new frmChucNang.MainWindow(guis[0].GetMainWindow());

                GDLoaiPhong.Show();
            }
        }