Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            tbkUsuario.Text = Sesion.Info();
            ////imgLogin.ImageSource = new BitmapImage(new Uri(Config.pathFotoUsuario + Sesion.idSesion + ".jpg"));
            switch (Sesion.rolSesion)
            {
            case "Administrador":

                break;

            case "Empleado":
                itemHome.Visibility = Visibility.Collapsed;
                //itemAlimentos.Visibility = Visibility.Collapsed;
                itemEmpleado.Visibility = Visibility.Collapsed;
                itemReporte.Visibility  = Visibility.Collapsed;
                itemLibros.Visibility   = Visibility.Collapsed;
                break;

            case "Cliente":
                itemHome.Visibility = Visibility.Collapsed;
                //itemAlimentos.Visibility = Visibility.Collapsed;
                itemEmpleado.Visibility = Visibility.Collapsed;
                itemReporte.Visibility  = Visibility.Collapsed;
                itemPrestamo.Visibility = Visibility.Collapsed;
                itemLibros.Visibility   = Visibility.Collapsed;
                break;
            }
        }