Class SaveDialog | Terminal.Gui v2 (original) (raw)

The SaveDialog provides an interactive dialog box for users to pick a file to save.

public class SaveDialog : FileDialog, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable

To use, create an instance of SaveDialog, and pass it toRun(Toplevel, Func<Exception, bool>?). This will run the dialog modally, and when this returns, the FileNameproperty will contain the selected file name or null if the user canceled.