コード例 #1
0
        public EnvironmentPage()
        {
            _platformUtilsService = ServiceContainer.Resolve <IPlatformUtilsService>("platformUtilsService");
            _messagingService     = ServiceContainer.Resolve <IMessagingService>("messagingService");
            _messagingService.Send("showStatusBar", true);
            InitializeComponent();
            _vm      = BindingContext as EnvironmentPageViewModel;
            _vm.Page = this;
            if (Device.RuntimePlatform == Device.Android)
            {
                ToolbarItems.RemoveAt(0);
            }

            _webVaultEntry.ReturnType    = ReturnType.Next;
            _webVaultEntry.ReturnCommand = new Command(() => _apiEntry.Focus());
            _apiEntry.ReturnType         = ReturnType.Next;
            _apiEntry.ReturnCommand      = new Command(() => _identityEntry.Focus());
            _identityEntry.ReturnType    = ReturnType.Next;
            _identityEntry.ReturnCommand = new Command(() => _iconsEntry.Focus());
            _vm.SubmitSuccessAction      = () => Device.BeginInvokeOnMainThread(async() => await SubmitSuccessAsync());
            _vm.CloseAction = async() =>
            {
                _messagingService.Send("showStatusBar", false);
                await Navigation.PopModalAsync();
            };
        }
コード例 #2
0
        public EnvironmentPage()
        {
            InitializeComponent();
            _vm      = BindingContext as EnvironmentPageViewModel;
            _vm.Page = this;

            _webVaultEntry.ReturnType    = ReturnType.Next;
            _webVaultEntry.ReturnCommand = new Command(() => _apiEntry.Focus());
            _apiEntry.ReturnType         = ReturnType.Next;
            _apiEntry.ReturnCommand      = new Command(() => _identityEntry.Focus());
            _identityEntry.ReturnType    = ReturnType.Next;
            _identityEntry.ReturnCommand = new Command(() => _iconsEntry.Focus());
        }
コード例 #3
0
ファイル: EnvironmentPage.xaml.cs プロジェクト: dai640/mobile
        public EnvironmentPage()
        {
            InitializeComponent();
            _vm      = BindingContext as EnvironmentPageViewModel;
            _vm.Page = this;
            if (Device.RuntimePlatform == Device.Android)
            {
                ToolbarItems.RemoveAt(0);
            }

            _webVaultEntry.ReturnType    = ReturnType.Next;
            _webVaultEntry.ReturnCommand = new Command(() => _apiEntry.Focus());
            _apiEntry.ReturnType         = ReturnType.Next;
            _apiEntry.ReturnCommand      = new Command(() => _identityEntry.Focus());
            _identityEntry.ReturnType    = ReturnType.Next;
            _identityEntry.ReturnCommand = new Command(() => _iconsEntry.Focus());
        }
コード例 #4
0
        public EnvironmentPage()
        {
            _messagingService = ServiceContainer.Resolve <IMessagingService>("messagingService");
            _messagingService.Send("showStatusBar", true);
            InitializeComponent();
            _vm      = BindingContext as EnvironmentPageViewModel;
            _vm.Page = this;
            if (Device.RuntimePlatform == Device.Android)
            {
                ToolbarItems.RemoveAt(0);
            }

            _webVaultEntry.ReturnType    = ReturnType.Next;
            _webVaultEntry.ReturnCommand = new Command(() => _apiEntry.Focus());
            _apiEntry.ReturnType         = ReturnType.Next;
            _apiEntry.ReturnCommand      = new Command(() => _identityEntry.Focus());
            _identityEntry.ReturnType    = ReturnType.Next;
            _identityEntry.ReturnCommand = new Command(() => _iconsEntry.Focus());
        }
コード例 #5
0
 public EnvironmentPage()
 {
     InitializeComponent();
     _vm      = BindingContext as EnvironmentPageViewModel;
     _vm.Page = this;
 }