public async void CloneConfiguration() { var clonedName = await Popups.PromptForStringAsync("Cloned configuration name", isRequired : true); var clonedFlavor = SelectedBuildFlavor.Clone(clonedName); BuildFlavors.Add(clonedFlavor); SelectedBuildFlavor = clonedFlavor; }
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); } }
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); } }