/// <summary> /// Initializes a new instance of the Settings class. /// </summary> /// <param name="documentPath">Path of Visio document.</param> public SettingsForm( string documentPath ) { // // Required for Windows Form Designer support // InitializeComponent(); // _documentPath = documentPath; // // requiredField // this.folderExists = new FolderExistsValidator(); this.folderExists.ControlToValidate = this.textBoxPath; this.folderExists.ErrorMessage = "Folder does not exist."; this.folderExists.IconPadding = 40; }
/// <summary> /// Initializes a new instance of the Settings class. /// </summary> /// <param name="documentPath">Path of Visio document.</param> public SettingsForm(string documentPath) { // // Required for Windows Form Designer support // InitializeComponent(); // _documentPath = documentPath; // // requiredField // this.folderExists = new FolderExistsValidator(); this.folderExists.ControlToValidate = this.textBoxPath; this.folderExists.ErrorMessage = "Folder does not exist."; this.folderExists.IconPadding = 40; }