Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,12 @@ MigrationBackup/
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
FodyWeavers.xsd

# custom configuration
TestResult/
TestDatabase/
*.mdb
*.accdb
*.ldb
*.laccdb
2 changes: 1 addition & 1 deletion AccessIO/AccessIO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand Down Expand Up @@ -78,7 +79,6 @@
<Compile Include="Field.cs" />
<Compile Include="ImportExport\ExportObject.cs" />
<Compile Include="ImportExport\ImportObject.cs" />
<Compile Include="ImportExport\ImportOptions.cs" />
<Compile Include="ImportExport\IPropertyTransform.cs" />
<Compile Include="ImportExport\Transformers.cs" />
<Compile Include="Metadata\Containers.cs" />
Expand Down
63 changes: 0 additions & 63 deletions AccessIO/ImportExport/ImportOptions.cs

This file was deleted.

48 changes: 48 additions & 0 deletions AccessScrCtrl/AccessScrCtl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"LogLevel": "NFO",
"Profiles": [
{
"Name": "my name2",
"FileName": "path/to/file.accvcs",
"LastUsedOrder": 2
},
{
"Name": "my name1",
"FileName": "path/to/file.accvcs",
"LastUsedOrder": 1
}
],
"MRUNumber": 4,
"Default": {
"Name": "DefaultProfile",
"Version": 1,
"AccessFile": "path/to/file.mdb",
"WorkingCopy": "folderName",
"LastSaveDateTime": "",
"LogLevel": "NFO",
"LogFileName": "",
"ImportOptions": {
"OverwriteDatabase": false,
"ConfirmImportedObjects": false,
"RemoveNotLoaded": false,
"AllowDataLostTables": [
"TableName1",
"Pattern*"
],
"Excludes": [
"Pattern*"
]
},
"ExportOptions": {
"ExtensionNaming": "type.vb|type.txt|type",
"ExportTableData": [
"Pattern*"
],
"ExportTableFormat": "sql|csv",
"ExportQueryDefAs": "Definition|sql|both",
"Excludes": [
"Pattern*"
]
}
}
}
31 changes: 31 additions & 0 deletions AccessScrCtrl/AccessScrCtrl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -95,6 +96,11 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Helpers\CommonDialogs.cs" />
<Compile Include="Helpers\FolderPicker.cs" />
<Compile Include="Helpers\PathUtil.cs" />
<Compile Include="Helpers\ValidationHelper.cs" />
<Compile Include="Profiles\Configuration.cs" />
<Compile Include="ImportOptionsFrm.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -107,6 +113,16 @@
<Compile Include="MainFrm.Designer.cs">
<DependentUpon>MainFrm.cs</DependentUpon>
</Compile>
<Compile Include="Profiles\ExportOptions.cs" />
<Compile Include="Profiles\ImportOptions.cs" />
<Compile Include="Profiles\Profile.cs" />
<Compile Include="Profiles\ProfileFrm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Profiles\ProfileFrm.Designer.cs">
<DependentUpon>ProfileFrm.cs</DependentUpon>
</Compile>
<Compile Include="Profiles\ProfileName.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Names.Designer.cs">
Expand All @@ -119,6 +135,10 @@
</EmbeddedResource>
<EmbeddedResource Include="MainFrm.resx">
<DependentUpon>MainFrm.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Profiles\ProfileFrm.resx">
<DependentUpon>ProfileFrm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
Expand All @@ -134,6 +154,9 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Names.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="AccessScrCtl.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand All @@ -144,6 +167,9 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="TestDatabase.accvcs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AccessScrCtrlUI\AccessScrCtrlUI.csproj">
Expand All @@ -164,6 +190,11 @@
<ItemGroup>
<Content Include="..\asvn\Resources\asvn.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
37 changes: 37 additions & 0 deletions AccessScrCtrl/Helpers/CommonDialogs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AccessScrCtrl.Helpers {
class CommonDialogs {
public static OpenFileDialog OpenAccess(string selectedFile) {
var result = new OpenFileDialog {
Title = Properties.Resources.OpenAccessFile,
Filter = Properties.Resources.OpenAccessFilter,
FileName = selectedFile
};
return result;
}

public static OpenFileDialog OpenProfile(string selectedFile) {
var result = new OpenFileDialog {
Title = Properties.Resources.OpenProfileFile,
Filter = Properties.Resources.OpenProfileFilter,
FileName = selectedFile
};
return result;
}

public static SaveFileDialog SaveProfile(string selectedFile) {
var result = new SaveFileDialog {
Title = Properties.Resources.OpenProfileFile,
Filter = Properties.Resources.OpenProfileFilter,
FileName = selectedFile
};
return result;

}
}
}
Loading