public Task <bool?> DeleteJob(string jobTitle) { return(DialogFacade .ConfirmAsync(title: "Confirm Delete", message: $"Are you sure do you want to delete {jobTitle}?", confirmingText: "Delete")); }
public Task <string> EditJob(string jobTitle) { return(DialogFacade .InputAsync(title: "Edit job", message: "Enter new job title:", inputText: jobTitle, inputPlaceholder: "Job Title", confirmingText: "Change")); }
public OperatingSystemFacade() { Assembly = new AssemblyFacade(); Dialog = new DialogFacade(); Environment = new Environment(); File = new FileFacade(); MemoryMappedFiles = new MemoryMappedFileFactory(); ProcessLocator = new ProcessLocator(); ProcessStarter = new ProcessStarter(); Registry = new Registry(); }
public OperatingSystemFacade() { Assembly = new AssemblyFacade(); Dialog = new DialogFacade(); Directory = new DirectoryFacade(); Environment = new Environment(); File = new FileFacade(); MemoryMappedFiles = new MemoryMappedFileFactory(); ProcessLocator = new ProcessLocator(); ProcessStarter = new ProcessStarter(); Registry = new Registry(); }
public Task <string> AddNewJob() { return(DialogFacade .InputAsync(title: "Add a new job", message: "Enter the job title:", inputPlaceholder: "Job Title", confirmingText: "Add", configuration: new XF.Material.Forms.UI.Dialogs.Configurations.MaterialInputDialogConfiguration { BackgroundColor = Color.FromHex("#2c3e50"), InputTextColor = Color.White, TintColor = Color.White, TitleTextColor = Color.White, MessageTextColor = Color.White, InputPlaceholderColor = Color.White.MultiplyAlpha(0.6) })); }
public Task JobDeleted() { return(DialogFacade .SnackbarAsync("Job deleted", MaterialSnackbar.DurationShort)); }
public void MediaError(SmoothStreamingErrorEventArgs e) { DialogFacade.Alert(string.Format(Resources.PlayerResources.MediaError, e.ErrorCode, e.ErrorMessage)); Stop(); }