Class SaveFilePrompt
A helper class for save file prompts.
Inherited Members
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.Shared.dll
Syntax
public static class SaveFilePrompt
Methods
View SourceShowOptional(string, Action)
Prompts the user to optionally save changes to a file.
Declaration
public static bool? ShowOptional(string message, Action saveAction)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to appear in the prompt. |
Action | saveAction | The save action to execute if the user says yes. |
Returns
Type | Description |
---|---|
bool? | A value indicating whether a prompt was not canceled. |
ShowRequired(string, Action)
Prompts the user that changes are required to be saved to a file.
Declaration
public static bool? ShowRequired(string message, Action saveAction)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to appear in the prompt. |
Action | saveAction | The save action to execute if the user says yes. |
Returns
Type | Description |
---|---|
bool? | A value indicating whether a prompt was not canceled. |