Show / Hide Table of Contents

Class SaveFilePrompt

A helper class for save file prompts.

Inheritance
object
SaveFilePrompt
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.Shared.dll
Syntax
public static class SaveFilePrompt

Methods

View Source

ShowOptional(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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX