Beispiel #1
0
 public static void DeleteInstance()
 {
     if (instance != null)
     {
         instance = null;
     }
 }
        private void CerrarSesion()
        {
            PRODUX.Model.UsuarioModel.EliminarUsuarioRealm();
            ProductoViewModel.DeleteInstance();
            ClienteViewModel.DeleteInstance();
            UsuarioViewModel.DeleteInstance();
            PedidoViewModel.DeleteInstance();

            Application.Current.MainPage = new PRODUX.View.InicioSesion();
        }
Beispiel #3
0
        public static ProductoViewModel GetInstance()
        {
            if (instance == null)
            {
                instance = new ProductoViewModel();
            }

            instance.InicializarClase();

            return(instance);
        }