Skip to content

Commit

Permalink
Added MRB Find and Replace function
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Bradford authored and Aaron Bradford committed Jul 13, 2023
1 parent a69c6e1 commit 27dd3bd
Show file tree
Hide file tree
Showing 7 changed files with 371 additions and 24 deletions.
20 changes: 10 additions & 10 deletions ExcelPaster/App.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="ExcelPaster.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
<section name="ExcelPaster.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<userSettings>
<ExcelPaster.Properties.Settings>
Expand All @@ -17,13 +17,13 @@
<value>0</value>
</setting>
<setting name="DatabaseFileLoc" serializeAs="String">
<value/>
<value />
</setting>
<setting name="TODOFileLoc" serializeAs="String">
<value/>
<value />
</setting>
<setting name="UserName" serializeAs="String">
<value/>
<value />
</setting>
<setting name="UseLevensteins" serializeAs="String">
<value>True</value>
Expand All @@ -33,12 +33,12 @@
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="PdfSharp" publicKeyToken="f94615aa0424f9eb" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.32.2608.0" newVersion="1.32.2608.0"/>
<assemblyIdentity name="PdfSharp" publicKeyToken="f94615aa0424f9eb" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.32.2608.0" newVersion="1.32.2608.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="BouncyCastle.Crypto" publicKeyToken="0e99375e54769942" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.8.9.0" newVersion="1.8.9.0"/>
<assemblyIdentity name="BouncyCastle.Crypto" publicKeyToken="0e99375e54769942" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.8.9.0" newVersion="1.8.9.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Expand Down
7 changes: 7 additions & 0 deletions ExcelPaster/DTFReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ public void SaveRegisters(string outputFolderLoc, bool displayOuput)

}
}

public void MassFindReplace(string sourceFile, string tansFile, string outputFolderLoc, bool displayOutput)
{
FileInfo f = new FileInfo(sourceFile);
string outputFileName = f.Name;
}
}
public class DTFPoint
{
Expand Down Expand Up @@ -144,4 +150,5 @@ public DTFPoint(string curGroupElement, string curGroupNiceName, string curPoint
}



}
6 changes: 4 additions & 2 deletions ExcelPaster/ExcelPaster.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand All @@ -23,10 +24,9 @@
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<ApplicationVersion>3.1.1.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -132,6 +132,7 @@
<HintPath>..\packages\itext7.7.1.13\lib\net40\itext.svg.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Office.Interop.Excel.15.0.4795.1001\lib\net20\Microsoft.Office.Interop.Excel.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="PdfSharp, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
Expand Down Expand Up @@ -179,6 +180,7 @@
<Compile Include="Keyboard.cs" />
<Compile Include="modbusTCP.cs" />
<Compile Include="ModemMap.cs" />
<Compile Include="MRBEditor.cs" />
<Compile Include="PadInfo.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
Loading

0 comments on commit 27dd3bd

Please sign in to comment.