Subversion Repositories SoapBoxCore

Rev

Rev 13 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 scott 1
#region "SoapBox.Core License"
2
/// <header module="SoapBox.Core"> 
16 scott 3
/// Copyright (C) 2009 SoapBox Automation Inc., All Rights Reserved.
4
/// Contact: SoapBox Automation Licencing (license@soapboxautomation.com)
5
/// 
6
/// This file is part of SoapBox Core.
7
/// 
8
/// Commercial Usage
9
/// Licensees holding valid SoapBox Automation Commercial licenses may use  
10
/// this file in accordance with the SoapBox Automation Commercial License
11
/// Agreement provided with the Software or, alternatively, in accordance 
12
/// with the terms contained in a written agreement between you and
13
/// SoapBox Automation Inc.
14
/// 
15
/// GNU Lesser General Public License Usage
16
/// SoapBox Core is free software: you can redistribute it and/or modify 
17
/// it under the terms of the GNU Lesser General Public License
18
/// as published by the Free Software Foundation, either version 3 of the
19
/// License, or (at your option) any later version.
20
/// 
21
/// SoapBox Core is distributed in the hope that it will be useful, 
22
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
23
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
/// GNU Lesser General Public License for more details.
25
/// 
26
/// You should have received a copy of the GNU Lesser General Public License 
27
/// along with SoapBox Core. If not, see <http://www.gnu.org/licenses/>.
13 scott 28
/// </header>
29
#endregion
30
 
31
using System;
32
using System.Collections.Generic;
33
 
34
namespace SoapBox.Core
35
{
36
    public interface IFileDialogService
37
    {
38
        /// <summary>
39
        /// Asks the user to select a file
40
        /// </summary>
41
        /// <param name="defaultExtension">Example: "txt"</param>
42
        /// <param name="initialDirectory">Example: @"C:\"</param>
43
        /// <param name="filters">Examples: 
44
        ///     "txt", "Text Documents" 
45
        ///     "bmp", "Bitmaps" 
46
        ///     (Note: automatically inserts the "All Files" option)
47
        ///     </param>
48
        /// <param name="title">Example: "Open file..."</param>
49
        /// <param name="addExtension">Set to true to auto-add the extension</param>
50
        /// <param name="checkFileExists">Warn if file doesn't exist.</param>
51
        /// <param name="checkPathExists">Warn if path doesn't exist.</param>
52
        /// <returns>null if user cancels, otherwise the filename</returns>
53
        string OpenFileDialog(
54
            string defaultExtension,
55
            string initialDirectory,
56
            Dictionary<string, string> filters,
57
            string title,
58
            bool addExtension,
59
            bool checkFileExists,
60
            bool checkPathExists);
61
 
62
        string SaveFileDialog(
63
            string defaultExtension,
64
            string initialDirectory,
65
            Dictionary<string,string> filters,
66
            string title,
67
            bool addExtension,
68
            bool checkFileExists,
69
            bool checkPathExists);
70
 
71
    }
72
}