Example #1
0
        public TrayNotificationViewModel(
            IVpnManager vpnManager,
            AppExitHandler appExitHandler,
            QuickLaunchViewModel quickLaunchViewModel)
        {
            _vpnManager     = vpnManager;
            _appExitHandler = appExitHandler;

            ExitCommand       = new RelayCommand(ExitAction);
            DisconnectCommand = new RelayCommand(DisconnectAction);
            ConnectCommand    = new RelayCommand(ConnectAction);

            HandleVpnStatus(VpnStatus.Disconnected);

            QuickLaunch = quickLaunchViewModel;
        }
Example #2
0
        public QuickLaunchPage()
        {
            InitializeComponent();

            BindingContext = viewModel = new QuickLaunchViewModel();
        }