< Summary

Information
Class: MyNet.UI.Dialogs.FileDialogs.SaveFileDialogSettings
Assembly: MyNet.UI
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/Dialogs/FileDialogs/SaveFileDialogSettings.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 34
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Default()100%11100%
.ctor()100%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.UI/Dialogs/FileDialogs/SaveFileDialogSettings.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="SaveFileDialogSettings.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7namespace MyNet.UI.Dialogs.FileDialogs;
 8
 9/// <summary>
 10/// Settings for configuring the SaveFileDialog.
 11/// </summary>
 12public class SaveFileDialogSettings : FileDialogSettings
 13{
 14    /// <summary>
 15    /// Gets the default settings for the SaveFileDialog.
 16    /// </summary>
 317    public static SaveFileDialogSettings Default => new();
 18
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="SaveFileDialogSettings"/> class.
 21    /// </summary>
 1822    public SaveFileDialogSettings() => CheckFileExists = false;
 23
 24    /// <summary>
 25    /// Gets or sets a value indicating whether the dialog prompts the user for permission to create a file if the speci
 26    /// </summary>
 27    public bool CreatePrompt { get; set; }
 28
 29    /// <summary>
 30    /// Gets or sets a value indicating whether the dialog displays a warning if the specified file name already exists.
 31    /// </summary>
 32    public bool OverwritePrompt { get; set; }
 33}
 34

Methods/Properties

get_Default()
.ctor()