コード例 #1
0
        public async void CloneConfiguration()
        {
            var clonedName = await Popups.PromptForStringAsync("Cloned configuration name", isRequired : true);

            var clonedFlavor = SelectedBuildFlavor.Clone(clonedName);

            BuildFlavors.Add(clonedFlavor);
            SelectedBuildFlavor = clonedFlavor;
        }
コード例 #2
0
        public async Task <bool> PromptForAccessKey()
        {
            var result = await Popups.PromptForStringAsync(Resources.SimulatorCoreResources.Simulator_PromptAccessKey);

            if (String.IsNullOrEmpty(result))
            {
                await Popups.ShowAsync(Resources.SimulatorCoreResources.Simulator_AccessKeyIsRequired);

                return(false);
            }
            else
            {
                this.Simulator.AccessKey = result;
                return(true);
            }
        }
コード例 #3
0
        public async Task <bool> PromptForPassword()
        {
            var result = await Popups.PromptForStringAsync(Resources.SimulatorCoreResources.Simulator_PromptPassword);

            if (String.IsNullOrEmpty(result))
            {
                await Popups.ShowAsync(Resources.SimulatorCoreResources.Simulator_PasswordIsRequired);

                return(false);
            }
            else
            {
                this.Simulator.Password = result;
                return(true);
            }
        }