Esempio n. 1
0
        public LogInPage(IChikwamaNavService navService, NewWalletController controller)
        {
            InitializeComponent();


            BindingContext = new LoginViewModel(navService, controller);
        }
Esempio n. 2
0
        public SendMoneyPage(IChikwamaNavService navService, NewWalletController controller)
        {
            InitializeComponent();


            BindingContext = new SendMoneyViewModel(navService, controller);
        }
Esempio n. 3
0
 public TransactionHistoryViewModel(IChikwamaNavService navService, NewWalletController controller) : base(navService)
 {
     this.controller      = controller;
     this.accountsManager = new AccountManager(controller);
     this.navService      = navService;
     LoadData();
 }
Esempio n. 4
0
        public ConfirmPasscodeViewModel(NewWalletController controller, IChikwamaNavService navService) : base(navService)
        {
            this.controller = controller;
            _navService     = navService;

            ContinueCommand = new Command(async() => await ExecuteContinueCommand(Passcode));
        }
Esempio n. 5
0
 public WalletViewModel(IChikwamaNavService navService) : base(navService)
 {
     //locationService = DependencyService.Get<IChikwamaLocationService>();
     //locationService.GetMyLocation();
     //accountManager = DependencyService.Get<IAccountManager>();
     //walletManager = DependencyService.Get<IWalletManager>();
     tokens = new ObservableCollection <WalletModel>();
 }
Esempio n. 6
0
 public LoginViewModel(IChikwamaNavService navService, NewWalletController controller) : base(navService)
 {
     this.controller = controller;
     _navService     = navService;
     walletManager   = new WalletManager();
     CreateCommand   = new Command(async() => await ExecuteCreateWallet());
     UnlockCommand   = new Command(async() => await ExecuteUnlockCommand());
 }
Esempio n. 7
0
        public PassphraseViewModel(NewWalletController controller, IChikwamaNavService navService) : base(navService)
        {
            this.controller = controller;
            _navService     = navService;

            Words           = string.Join(" ", controller.GetSeedWords());
            ContinueCommand = new Command(async() => await ExecuteContinueCommand());
        }
Esempio n. 8
0
        public PasscodeViewModel(NewWalletController controller, IChikwamaNavService navService) : base(navService)
        {
            walletManager   = new WalletManager();
            _navService     = navService;
            this.controller = controller;

            ContinueCommand = new Command(async() => await ExecuteContinue());
        }
Esempio n. 9
0
        public BecomeCashPointViewModel(IChikwamaNavService navService, NewWalletController controller) : base(navService)
        {
            this.controller      = controller;
            this.accountsManager = new AccountManager(controller);
            this.navService      = navService;


            BecomeCashPointCommand = new Command(async() => await ExecuteBecomeCashPointCommand());
        }
Esempio n. 10
0
        public CashPointViewModel(IChikwamaNavService navService, NewWalletController controller) : base(navService)
        {
            this.controller      = controller;
            this.accountsManager = new AccountManager(controller);
            this.navService      = navService;



            GetCashPoints();
        }
Esempio n. 11
0
        public SendMoneyViewModel(IChikwamaNavService navService, NewWalletController controller) : base(navService)
        {
            this.controller      = controller;
            this.accountsManager = new AccountManager(controller);
            this.navService      = navService;
            var radd = controller.GetReciever();

            if (radd != "")
            {
                RecipientAddress = radd.Substring(9);
            }
            ViewHistoryCommand    = new Command(async() => await ExecuteViewHistoryCommand());
            RefreshBalanceCommand = new Command(async() => await ExecuteRefreshBalanceCommand());
            ScanQRCommand         = new Command(async() => await ExecuteScanQRCommand());
            SendCommand           = new Command(async() => await ExecuteSendCommand());
            ShareCommand          = new Command(async() => await ExecuteShareCommand());
        }
Esempio n. 12
0
 public AccountViewModel(IChikwamaNavService navService) : base(navService)
 {
     //	Get	our	Location	Service
     locationService    = DependencyService.Get <IChikwamaLocationService>();
     accounts           = new ObservableCollection <AccountModel>();
     this.walletManager = walletManager;
     // Check   to ensure  that we  have a   value for	our	object
     if (locationService != null)
     {
         locationService.MyLocation += (object sender, IChikwamaLocationCoords e) =>
         {
             //	Obtain	our	Latitude	and	Longitude
             //	coordinates
             myLatitude  = e.latitude;
             myLongitude = e.longitude;
         };
     }
     //	Call	our	Service	to	get	our	GPS	location
     locationService.GetMyLocation();
 }
Esempio n. 13
0
        public ScannerPage(IChikwamaNavService navService, NewWalletController controller)
        {
            Title           = "QRCode Scanner";
            this.controller = controller;
            this.navService = navService;

            InitializeComponent();
            BindingContext = new ScannerViewModel(navService, controller);

            scannerView.Options = new MobileBarcodeScanningOptions()
            {
                UseFrontCameraIfAvailable = false, //update later to come from settings
                PossibleFormats           = new List <BarcodeFormat> {
                    BarcodeFormat.QR_CODE
                },
                TryHarder   = true,
                AutoRotate  = false,
                TryInverted = true,
                DelayBetweenContinuousScans = 2000
            };
        }
Esempio n. 14
0
        public MainViewModel(IChikwamaNavService navService, NewWalletController controller) : base(navService)
        {
            this.controller = controller;
            this.navService = navService;

            Items = new ObservableCollection <MenuItems>()
            {
                new MenuItems()
                {
                    Title       = "Send",
                    ItemDetails = "Transfer Money to another account",
                    Icon        = ""
                },
                new MenuItems()
                {
                    Title       = "Get Money",
                    ItemDetails = "Recieve to my account",
                    Icon        = ""
                },
                new MenuItems()
                {
                    Title       = "Transactions",
                    ItemDetails = "View statistic info",
                    Icon        = ""
                },
                new MenuItems()
                {
                    Title       = "Find Cash Point",
                    ItemDetails = "Find a Cash Point near you",
                    Icon        = ""
                },
                new MenuItems()
                {
                    Title       = "Become Cash Point",
                    ItemDetails = "Become a cashpoint",
                    Icon        = ""
                },
            };
        }
Esempio n. 15
0
 public TokenEntryViewModel(IChikwamaNavService navService) : base(navService)
 {
     TokenName    = "Ethereum";
     TokenAddress = "0x9265C494eCEe37A2a7Aa400810620c061981cEB8";
     TokenSymbol  = "Eth";
 }
Esempio n. 16
0
 public CashPointPage(IChikwamaNavService navService, NewWalletController controller)
 {
     InitializeComponent();
     BindingContext = new CashPointViewModel(navService, controller);
 }
Esempio n. 17
0
 protected ChikwamaBaseViewModel(IChikwamaNavService navService)
 {
     NavService = navService;
 }
Esempio n. 18
0
        public TransactionHistoryPage(IChikwamaNavService navService, NewWalletController controller)
        {
            InitializeComponent();

            BindingContext = new TransactionHistoryViewModel(navService, controller);
        }
Esempio n. 19
0
 public TokenDetailsViewModel(IChikwamaNavService navService) :  base(navService)
 {
 }
Esempio n. 20
0
        public ConfirmPasscodePage(NewWalletController controller, IChikwamaNavService navService)
        {
            InitializeComponent();

            BindingContext = new ConfirmPasscodeViewModel(controller, navService);
        }
Esempio n. 21
0
 public ScannerViewModel(IChikwamaNavService navService, NewWalletController controller) : base(navService)
 {
     this.navigationService = navService;
     this.controller        = controller;
 }
Esempio n. 22
0
        public PassphraseConfirmationPage(NewWalletController controller, IChikwamaNavService navService)
        {
            InitializeComponent();

            BindingContext = new PassphraseConfirmationViewModel(controller, navService);
        }