Exemplo n.º 1
0
        public LoggerViewerViewModel(LoggerService logger)
        {
            Logger = logger;

            CopyCommand = new MvxCommand(ExecuteCopyCommand);
            ClearCommand = new MvxCommand(ExecuteClearCommand);
        }
Exemplo n.º 2
0
        public MainViewModel(LoggerService logger)
        {
            this.logger = logger;

            GoToPage1Command = new MvxCommand(ExecuteGoToPage1Command);
            GoToPage2Command = new MvxCommand(ExecuteGoToPage2Command);
            ForceGarbageCollectionCommand = new MvxCommand(ExecuteForceGarbageCollectionCommand);
        }
Exemplo n.º 3
0
        public MainView()
        {
            this.InitializeComponent();

            this.Loaded += OnMainViewLoaded;
            this.Unloaded += OnMainViewUnloaded;

            logger = Mvx.Resolve<LoggerService>();
        }
Exemplo n.º 4
0
        public Page1View()
        {
            this.InitializeComponent();

            messenger = Mvx.Resolve<IMvxMessenger>();
            logger = Mvx.Resolve<LoggerService>();

            this.Loaded += OnPage1ViewLoaded;
            this.Unloaded += OnPage1ViewUnloaded;

            logger.LogInfo("Page1View: Ctor.");
        }