Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1619 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
13 changed files with 185 additions and 24 deletions
@ -0,0 +1,43 @@ |
|||||||
|
/* |
||||||
|
* User: Dickon Field |
||||||
|
* Date: 20/07/2006 |
||||||
|
* Time: 19:07 |
||||||
|
* |
||||||
|
*/ |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
namespace SharpDbTools.Model |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of ConnectionInfoStorage.
|
||||||
|
/// </summary>
|
||||||
|
public class DbConnectionInfoStorage |
||||||
|
{ |
||||||
|
const string CONNECTION_INFO_STORAGE_FILE_NAME = "ConnectionInfo.xml"; |
||||||
|
|
||||||
|
static DbConnectionInfoStorage instance = new DbConnectionInfoStorage(); |
||||||
|
|
||||||
|
private DbConnectionInfoStorage() |
||||||
|
{ |
||||||
|
// TODO: retrieve ConnectionInfo objects from an xml file
|
||||||
|
} |
||||||
|
|
||||||
|
public static DbConnectionInfoStorage GetInstance() |
||||||
|
{ |
||||||
|
return instance; |
||||||
|
} |
||||||
|
|
||||||
|
public void AddConnectionInfo(DbConnectionInfo connectionInfo) |
||||||
|
{ |
||||||
|
// TODO: store ConnectionInfo in an xml file
|
||||||
|
} |
||||||
|
|
||||||
|
public List<DbConnectionInfo> GetConnectionInfoCollection() |
||||||
|
{ |
||||||
|
// TODO: return
|
||||||
|
return null; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,21 @@ |
|||||||
|
/* |
||||||
|
* User: Dickon Field |
||||||
|
* Date: 19/07/2006 |
||||||
|
* Time: 23:19 |
||||||
|
* |
||||||
|
*/ |
||||||
|
|
||||||
|
using System; |
||||||
|
|
||||||
|
namespace SharpDbTools |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of Class1.
|
||||||
|
/// </summary>
|
||||||
|
public class ServerBrowserToolController |
||||||
|
{ |
||||||
|
public ServerBrowserToolController() |
||||||
|
{ |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,20 @@ |
|||||||
|
/* |
||||||
|
* User: dickon |
||||||
|
* Date: 26/07/2006 |
||||||
|
* Time: 01:14 |
||||||
|
* |
||||||
|
*/ |
||||||
|
|
||||||
|
using System; |
||||||
|
|
||||||
|
namespace SharpDbTools.Viewer |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Defines the contract supported by a db metadata collection
|
||||||
|
/// viewer
|
||||||
|
/// </summary>
|
||||||
|
public interface IViewer |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
/* |
||||||
|
* User: dickon |
||||||
|
* Date: 26/07/2006 |
||||||
|
* Time: 01:07 |
||||||
|
* |
||||||
|
*/ |
||||||
|
|
||||||
|
using System; |
||||||
|
using SharpDbTools.Model; |
||||||
|
|
||||||
|
namespace SharpDbTools.Viewer |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of ViewerFactory.
|
||||||
|
/// </summary>
|
||||||
|
public class ViewerFactory |
||||||
|
{ |
||||||
|
static ViewerFactory instance = new ViewerFactory(); |
||||||
|
|
||||||
|
ViewerFactory() |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
public static ViewerFactory GetInstance() |
||||||
|
{ |
||||||
|
return instance; |
||||||
|
} |
||||||
|
|
||||||
|
public static IViewer GetViewer(string metaDataCollectionName, |
||||||
|
DbConnectionInfo connectionInfo) |
||||||
|
{ |
||||||
|
return null; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue