void Command_Database_Connect(DatabaseConnectDialog.Result result)
		{
			if (dbConnection != null)
			{
				dbConnection.Dispose();
				dbConnection = null;
			}
			dbConnection = result.DBConnectInfo.GetConnection();
			DBName = result.DBConnectInfo.Name;
		}
		public static Result Run(Window parent)
		{
			var dialog = new DatabaseConnectDialog { Owner = parent };
			return dialog.ShowDialog() ? dialog.result : null;
		}