This commit is contained in:
Kathy Ruffing 2018-08-13 14:07:09 +00:00
parent 428cb772e5
commit 7654a503a3
17 changed files with 2963 additions and 0 deletions

42
PROMS/Baseline/App.config Normal file
View File

@ -0,0 +1,42 @@
<?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="Baseline.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.5" />
</startup>
<userSettings>
<Baseline.Properties.Settings>
<setting name="Compare1" serializeAs="String">
<value />
</setting>
<setting name="Compare2" serializeAs="String">
<value />
</setting>
<setting name="Location" serializeAs="String">
<value>0, 0</value>
</setting>
<setting name="Size" serializeAs="String">
<value>700, 400</value>
</setting>
<setting name="WidnowState" serializeAs="String">
<value>Normal</value>
</setting>
<setting name="Split1" serializeAs="String">
<value>120</value>
</setting>
<setting name="Split2" serializeAs="String">
<value>350</value>
</setting>
<setting name="Split3" serializeAs="String">
<value>167</value>
</setting>
<setting name="Ignore" serializeAs="String">
<value />
</setting>
</Baseline.Properties.Settings>
</userSettings>
</configuration>

View File

@ -0,0 +1,145 @@
/* ========================================================================
Copyright 2018 - Volian Enterprises, Inc. All rights reserved.
Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
------------------------------------------------------------------------
This is a SQL script which can be used to create a CMD Batch file to
perform automated testing on all of the folders within the current
database and server.
------------------------------- NOTE -----------------------------------
There are no parameters in this script. The following values are
retrieved from the databse which is currently open
DB_NAME() - Gets the current Database Name
@@Servername - Gets the current SQL Servername
These are passed as parameters to PROMS along with some other paramters
which specifies how the procedure should be printed.
You can add REM before any folders that should not print
****************************** CAUTION *********************************
If you are comparing against code created before 8/1/2018 you will need
to specify /NW to exclude the Word output which had not previously been
included.
=======================================================================*/
PRINT 'REM Blank Line Before Batch Commands
@ECHO OFF
ECHO Automated testing assumes the following:
ECHO C:\PDFS will be used to store the results of the Automated Print Testing
ECHO C:\PROMS will be used to store the executable for the Automated Print Testing
ECHO ---
ECHO The following Parameter Needs to be set:
set PROMSEXE=1.5.1805.910.Production
ECHO PROMSEXE [%PROMSEXE%] - Subfolder of the PROMS Executable
ECHO ---
ECHO Automated Testing will:
ECHO Delete PDFs
ECHO Update Formats From the folder promsformats under the PROMSEXE folder
set dbName=' + DB_NAME() + '
set /p GroupComment=Specify Output[%PROMSEXE%_%dbName%]: || set GroupComment=%PROMSEXE%_%dbName%
ECHO AAA >%TEMP%\VEPROMS\NewFile.txt
for %%a in (%TEMP%\VEPROMS\NewFile.txt) do Set fdt=%%~ta
for /F "tokens=1,2,3,4,5,6 delims=/: " %%i in (''echo %fdt%'') do call:sc_FixTime %%k %%i %%j %%n %%l %%m
set fdt=%fdt::=%_%GroupComment%
set ServerName=' + @@Servername + '
md %TEMP%\VEPROMS\%fdt%
echo %date% %time% Start ' + @@Servername + ' ' + DB_NAME() + '%GroupComment% >>%TEMP%\VEPROMS\%fdt%\Times.txt
del %TEMP%\VEPROMS\NewFile.txt
Rem Cleanup output folder before processing
del %temp%\VEPROMS\*.txt
del %temp%\VEPROMS\*.pdf
Rem Delete PDFs
sqlcmd -E -S%servername% -d%DBNAME% -b -Q "delete from pdfs"
if ERRORLEVEL 1 goto :oops
Rem Update Formats
call :sc_setformats unnecessary unnecessary ' + DB_NAME() + ' unnecessary %PROMSEXE%
Rem Perform PROMS printing for each Folder ----------------------------------------
'
declare @CommandLine nvarchar(255)
declare Commands cursor for
select 'Call :sc_PrintPDF %TEMP%\VEPROMS ' +
cast(VersionID as varchar(5))+ ' ' + db_name() + ' ' +
Replace(Replace(ff.name,' ','_'),'-','_') + ' %PROMSEXE%'
from docversions dv
join folders ff on dv.folderID = ff.FolderID
order by versionID
OPEN Commands
FETCH NEXT FROM Commands INTO @CommandLine
WHILE @@FETCH_STATUS = 0
BEGIN
print @CommandLine
FETCH NEXT FROM Commands INTO @CommandLine
END
CLOSE Commands
DEALLOCATE Commands
PRINT 'Call :sc_MoveErrorLog ' + db_name() +'
echo %date% %time% Done >>%TEMP%\VEPROMS\%fdt%\Times.txt
Move %TEMP%\VEPROMS\%fdt% C:\PDFs\%fdt%
set GroupComment=
set fdt=
rem wait 20
goto:eof
:sc_setformats
echo loading formats from c:\proms\%5\promsformats
"C:\PROMS\%5\VEPROMS.exe" /UF=c:\proms\%5\promsformats /P= /DB=%ServerName%:%3
timeout /T 10
goto:eof
:sc_PrintPDF
echo %date% %time% Start %2 (%4) >>%TEMP%\VEPROMS\%fdt%\Times.txt
echo Creating PDFs for DocVersion %2 (%4) in %3
rem del %userprofile%\Documents\VEPROMS\%3*.txt
"C:\PROMS\%5\VEPROMS.exe" /P=%2 /DB=%ServerName%:%3 /NT /NC
rem -----------------------------------------------
rem Add /NW to exclude Word Output to the Meta File
rem -----------------------------------------------
echo %date% %time% Done %2 (%4) >>%TEMP%\VEPROMS\%fdt%\Times.txt
call :sc_AddText %3 %2 %4 %5
C:
cd %1
if not exist DebugP*.txt goto:sc_PrintPDFNoFiles
set fdt1=%fdt%\%3\%2_%4
md %fdt1%
del DOC_*.pdf > nul
move *.pdf %fdt1% > nul
move *.txt %fdt1% > nul
for /F %%c in (''cd'') do echo Files Moved to %%c\%fdt1%
set fdt1=
goto:eof
:sc_PrintPDFNoFiles
for /F %%d in (''cd'') do echo No Files to Move in %%d
goto:eof
:sc_FixTime
set fdt=%1%2%3_%5%6
if "%5%4"=="12PM" goto:sc_FixTimeDone
if "%5%4"=="12AM" set fdt=%1%2%3_00%6
if "%4"=="AM" goto:sc_FixTimeDone
if "%5"=="01" set fdt=%1%2%3_13%6
if "%5"=="02" set fdt=%1%2%3_14%6
if "%5"=="03" set fdt=%1%2%3_15%6
if "%5"=="04" set fdt=%1%2%3_16%6
if "%5"=="05" set fdt=%1%2%3_17%6
if "%5"=="06" set fdt=%1%2%3_18%6
if "%5"=="07" set fdt=%1%2%3_19%6
if "%5"=="08" set fdt=%1%2%3_20%6
if "%5"=="09" set fdt=%1%2%3_21%6
if "%5"=="10" set fdt=%1%2%3_22%6
if "%5"=="11" set fdt=%1%2%3_23%6
:sc_FixTimeDone
echo %2/%3/%1 %5:%6 %4 %fdt%
goto:eof
:sc_MoveErrorLog
move %userprofile%\Documents\VEPROMS\%1*.txt %fdt%\%1 > nul
goto:eof
:sc_AddText
for %%a in ("%userprofile%\Documents\VEPROMS\%1 *.txt") do Set fil=%%a
echo "=========== %4 Printing Complete %2 %3 ===========" >>"%fil%"
set fil=
goto :eof
oops:
TIMEOUT /T 60
'

View File

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8B29E0DE-B6C9-4041-8817-319FDE3123C4}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Baseline</RootNamespace>
<AssemblyName>Baseline</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="frmBaseline.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmBaseline.Designer.cs">
<DependentUpon>frmBaseline.cs</DependentUpon>
</Compile>
<Compile Include="frmSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmSettings.Designer.cs">
<DependentUpon>frmSettings.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="frmBaseline.resx">
<DependentUpon>frmBaseline.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmSettings.resx">
<DependentUpon>frmSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\DataSources\IgnoreLines.datasource" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="AutomatedTesting.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</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.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

22
PROMS/Baseline/Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Baseline
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmBaseline());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Baseline")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Baseline")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2ebd4d89-21f4-41db-b8fe-9ea40be0f23a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="IgnoreLines" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>Baseline.IgnoreLines, Baseline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
<TypeUISetting>
<PropertyUISettings>
<PropertyUISetting Name="SearchType">
<ControlSettings>
<ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
<BindableControlInfo Name="ComboBox" Type="System.Windows.Forms.ComboBox" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ControlSetting>
</ControlSettings>
</PropertyUISetting>
</PropertyUISettings>
</TypeUISetting>
</GenericObjectDataSource>

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Baseline.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Baseline.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,156 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Baseline.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string Compare1 {
get {
return ((string)(this["Compare1"]));
}
set {
this["Compare1"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string Compare2 {
get {
return ((string)(this["Compare2"]));
}
set {
this["Compare2"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0, 0")]
public global::System.Drawing.Point Location {
get {
return ((global::System.Drawing.Point)(this["Location"]));
}
set {
this["Location"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("700, 400")]
public global::System.Drawing.Size Size {
get {
return ((global::System.Drawing.Size)(this["Size"]));
}
set {
this["Size"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Normal")]
public global::System.Windows.Forms.FormWindowState WidnowState {
get {
return ((global::System.Windows.Forms.FormWindowState)(this["WidnowState"]));
}
set {
this["WidnowState"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("120")]
public int Split1 {
get {
return ((int)(this["Split1"]));
}
set {
this["Split1"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("350")]
public int Split2 {
get {
return ((int)(this["Split2"]));
}
set {
this["Split2"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("167")]
public int Split3 {
get {
return ((int)(this["Split3"]));
}
set {
this["Split3"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Collections.Specialized.StringCollection MRU1 {
get {
return ((global::System.Collections.Specialized.StringCollection)(this["MRU1"]));
}
set {
this["MRU1"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Collections.Specialized.StringCollection MRU2 {
get {
return ((global::System.Collections.Specialized.StringCollection)(this["MRU2"]));
}
set {
this["MRU2"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string Ignore {
get {
return ((string)(this["Ignore"]));
}
set {
this["Ignore"] = value;
}
}
}
}

View File

@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Baseline.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Compare1" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Compare2" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Location" Type="System.Drawing.Point" Scope="User">
<Value Profile="(Default)">0, 0</Value>
</Setting>
<Setting Name="Size" Type="System.Drawing.Size" Scope="User">
<Value Profile="(Default)">700, 400</Value>
</Setting>
<Setting Name="WidnowState" Type="System.Windows.Forms.FormWindowState" Scope="User">
<Value Profile="(Default)">Normal</Value>
</Setting>
<Setting Name="Split1" Type="System.Int32" Scope="User">
<Value Profile="(Default)">120</Value>
</Setting>
<Setting Name="Split2" Type="System.Int32" Scope="User">
<Value Profile="(Default)">350</Value>
</Setting>
<Setting Name="Split3" Type="System.Int32" Scope="User">
<Value Profile="(Default)">167</Value>
</Setting>
<Setting Name="MRU1" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="MRU2" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Ignore" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>

388
PROMS/Baseline/frmBaseline.Designer.cs generated Normal file
View File

@ -0,0 +1,388 @@
namespace Baseline
{
partial class frmBaseline
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.panel1 = new System.Windows.Forms.Panel();
this.btnUC = new System.Windows.Forms.Button();
this.cbCaseSensitive = new System.Windows.Forms.CheckBox();
this.cbFile2 = new System.Windows.Forms.ComboBox();
this.cbFile1 = new System.Windows.Forms.ComboBox();
this.tbSearch = new System.Windows.Forms.TextBox();
this.btnSearch = new System.Windows.Forms.Button();
this.btnSettings = new System.Windows.Forms.Button();
this.btnBaseline = new System.Windows.Forms.Button();
this.btnPagination = new System.Windows.Forms.Button();
this.btnBrowse2 = new System.Windows.Forms.Button();
this.btnBrowse1 = new System.Windows.Forms.Button();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.lbDifferent = new System.Windows.Forms.ListBox();
this.lbProcedures = new System.Windows.Forms.ListBox();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.lbResults1 = new System.Windows.Forms.ListBox();
this.lbResults2 = new System.Windows.Forms.ListBox();
this.fbd = new System.Windows.Forms.FolderBrowserDialog();
this.StatusBar = new System.Windows.Forms.StatusStrip();
this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel();
this.tt = new System.Windows.Forms.ToolTip(this.components);
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
this.splitContainer3.Panel1.SuspendLayout();
this.splitContainer3.Panel2.SuspendLayout();
this.splitContainer3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
this.StatusBar.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.btnUC);
this.panel1.Controls.Add(this.cbCaseSensitive);
this.panel1.Controls.Add(this.cbFile2);
this.panel1.Controls.Add(this.cbFile1);
this.panel1.Controls.Add(this.tbSearch);
this.panel1.Controls.Add(this.btnSearch);
this.panel1.Controls.Add(this.btnSettings);
this.panel1.Controls.Add(this.btnBaseline);
this.panel1.Controls.Add(this.btnPagination);
this.panel1.Controls.Add(this.btnBrowse2);
this.panel1.Controls.Add(this.btnBrowse1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(707, 80);
this.panel1.TabIndex = 0;
//
// btnUC
//
this.btnUC.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnUC.Enabled = false;
this.btnUC.Location = new System.Drawing.Point(586, 50);
this.btnUC.Name = "btnUC";
this.btnUC.Size = new System.Drawing.Size(49, 23);
this.btnUC.TabIndex = 12;
this.btnUC.Text = "UC";
this.tt.SetToolTip(this.btnUC, "Run Ultra Compare on Selected Pagination Information");
this.btnUC.UseVisualStyleBackColor = true;
this.btnUC.Click += new System.EventHandler(this.btnUC_Click);
//
// cbCaseSensitive
//
this.cbCaseSensitive.AutoSize = true;
this.cbCaseSensitive.Location = new System.Drawing.Point(356, 56);
this.cbCaseSensitive.Name = "cbCaseSensitive";
this.cbCaseSensitive.Size = new System.Drawing.Size(96, 17);
this.cbCaseSensitive.TabIndex = 11;
this.cbCaseSensitive.Text = "Case Sensitive";
this.tt.SetToolTip(this.cbCaseSensitive, "Set the Search to be Case Sensitive\r\nUppercase and Lowercase will not match");
this.cbCaseSensitive.UseVisualStyleBackColor = true;
//
// cbFile2
//
this.cbFile2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cbFile2.FormattingEnabled = true;
this.cbFile2.Location = new System.Drawing.Point(12, 25);
this.cbFile2.Name = "cbFile2";
this.cbFile2.Size = new System.Drawing.Size(623, 21);
this.cbFile2.TabIndex = 10;
this.tt.SetToolTip(this.cbFile2, "New PDF Folder\r\nAll Subfolders will be compared");
//
// cbFile1
//
this.cbFile1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cbFile1.FormattingEnabled = true;
this.cbFile1.Location = new System.Drawing.Point(12, 3);
this.cbFile1.Name = "cbFile1";
this.cbFile1.Size = new System.Drawing.Size(623, 21);
this.cbFile1.TabIndex = 9;
this.tt.SetToolTip(this.cbFile1, "Baseline PDF Folder\r\nAll subfolders will be compared\r\n");
//
// tbSearch
//
this.tbSearch.Location = new System.Drawing.Point(221, 54);
this.tbSearch.Name = "tbSearch";
this.tbSearch.Size = new System.Drawing.Size(129, 20);
this.tbSearch.TabIndex = 8;
this.tt.SetToolTip(this.tbSearch, "String to search for in all data");
//
// btnSearch
//
this.btnSearch.Location = new System.Drawing.Point(152, 52);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(61, 23);
this.btnSearch.TabIndex = 7;
this.btnSearch.Text = "Search";
this.tt.SetToolTip(this.btnSearch, "Perform Search on Baseline Data");
this.btnSearch.UseVisualStyleBackColor = true;
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// btnSettings
//
this.btnSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSettings.Location = new System.Drawing.Point(641, 50);
this.btnSettings.Name = "btnSettings";
this.btnSettings.Size = new System.Drawing.Size(61, 26);
this.btnSettings.TabIndex = 6;
this.btnSettings.Text = "Settings";
this.btnSettings.UseVisualStyleBackColor = true;
this.btnSettings.Click += new System.EventHandler(this.btnSettings_Click);
//
// btnBaseline
//
this.btnBaseline.Location = new System.Drawing.Point(79, 52);
this.btnBaseline.Name = "btnBaseline";
this.btnBaseline.Size = new System.Drawing.Size(67, 23);
this.btnBaseline.TabIndex = 5;
this.btnBaseline.Text = "Baseline";
this.tt.SetToolTip(this.btnBaseline, "Find Baseline Differences");
this.btnBaseline.UseVisualStyleBackColor = true;
this.btnBaseline.Click += new System.EventHandler(this.btnBaseline_Click);
//
// btnPagination
//
this.btnPagination.Location = new System.Drawing.Point(3, 52);
this.btnPagination.Name = "btnPagination";
this.btnPagination.Size = new System.Drawing.Size(70, 23);
this.btnPagination.TabIndex = 4;
this.btnPagination.Text = "Pagination";
this.tt.SetToolTip(this.btnPagination, "Find Pagination Differences");
this.btnPagination.UseVisualStyleBackColor = true;
this.btnPagination.Click += new System.EventHandler(this.btnPagination_Click);
//
// btnBrowse2
//
this.btnBrowse2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnBrowse2.Location = new System.Drawing.Point(641, 25);
this.btnBrowse2.Name = "btnBrowse2";
this.btnBrowse2.Size = new System.Drawing.Size(61, 20);
this.btnBrowse2.TabIndex = 3;
this.btnBrowse2.Text = "Browse...";
this.tt.SetToolTip(this.btnBrowse2, "Browse for new PDFs");
this.btnBrowse2.UseVisualStyleBackColor = true;
this.btnBrowse2.Click += new System.EventHandler(this.btnBrowse2_Click);
//
// btnBrowse1
//
this.btnBrowse1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnBrowse1.Location = new System.Drawing.Point(641, 2);
this.btnBrowse1.Name = "btnBrowse1";
this.btnBrowse1.Size = new System.Drawing.Size(61, 20);
this.btnBrowse1.TabIndex = 1;
this.btnBrowse1.Text = "Browse...";
this.tt.SetToolTip(this.btnBrowse1, "Browse for Baseline PDFs\r\n");
this.btnBrowse1.UseVisualStyleBackColor = true;
this.btnBrowse1.Click += new System.EventHandler(this.btnBrowse1_Click);
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 80);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.splitContainer3);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(707, 397);
this.splitContainer1.SplitterDistance = 196;
this.splitContainer1.TabIndex = 1;
//
// splitContainer3
//
this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer3.Location = new System.Drawing.Point(0, 0);
this.splitContainer3.Name = "splitContainer3";
this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer3.Panel1
//
this.splitContainer3.Panel1.Controls.Add(this.lbDifferent);
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.lbProcedures);
this.splitContainer3.Panel2Collapsed = true;
this.splitContainer3.Size = new System.Drawing.Size(707, 196);
this.splitContainer3.SplitterDistance = 167;
this.splitContainer3.TabIndex = 0;
//
// lbDifferent
//
this.lbDifferent.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbDifferent.FormattingEnabled = true;
this.lbDifferent.Location = new System.Drawing.Point(0, 0);
this.lbDifferent.Name = "lbDifferent";
this.lbDifferent.Size = new System.Drawing.Size(707, 196);
this.lbDifferent.TabIndex = 1;
this.tt.SetToolTip(this.lbDifferent, "Differences by Procedure Sets");
this.lbDifferent.SelectedIndexChanged += new System.EventHandler(this.lbDifferent_SelectedIndexChanged);
//
// lbProcedures
//
this.lbProcedures.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbProcedures.FormattingEnabled = true;
this.lbProcedures.Location = new System.Drawing.Point(0, 0);
this.lbProcedures.Name = "lbProcedures";
this.lbProcedures.Size = new System.Drawing.Size(707, 25);
this.lbProcedures.TabIndex = 1;
this.tt.SetToolTip(this.lbProcedures, "Procedures withDifferences or Search Text");
this.lbProcedures.SelectedIndexChanged += new System.EventHandler(this.lbProcedures_SelectedIndexChanged);
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.lbResults1);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.lbResults2);
this.splitContainer2.Size = new System.Drawing.Size(707, 197);
this.splitContainer2.SplitterDistance = 350;
this.splitContainer2.TabIndex = 0;
//
// lbResults1
//
this.lbResults1.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbResults1.FormattingEnabled = true;
this.lbResults1.Location = new System.Drawing.Point(0, 0);
this.lbResults1.Name = "lbResults1";
this.lbResults1.Size = new System.Drawing.Size(350, 197);
this.lbResults1.TabIndex = 0;
this.tt.SetToolTip(this.lbResults1, "Results from Baseline PDFs");
this.lbResults1.SelectedIndexChanged += new System.EventHandler(this.lbResults1_SelectedIndexChanged);
//
// lbResults2
//
this.lbResults2.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbResults2.FormattingEnabled = true;
this.lbResults2.Location = new System.Drawing.Point(0, 0);
this.lbResults2.Name = "lbResults2";
this.lbResults2.Size = new System.Drawing.Size(353, 197);
this.lbResults2.TabIndex = 0;
this.tt.SetToolTip(this.lbResults2, "Results from New PDFs");
this.lbResults2.SelectedIndexChanged += new System.EventHandler(this.lbResults2_SelectedIndexChanged);
//
// fbd
//
this.fbd.SelectedPath = "fbd";
//
// StatusBar
//
this.StatusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsslStatus});
this.StatusBar.Location = new System.Drawing.Point(0, 477);
this.StatusBar.Name = "StatusBar";
this.StatusBar.Size = new System.Drawing.Size(707, 22);
this.StatusBar.TabIndex = 2;
this.StatusBar.Text = "statusStrip1";
//
// tsslStatus
//
this.tsslStatus.Name = "tsslStatus";
this.tsslStatus.Size = new System.Drawing.Size(118, 17);
this.tsslStatus.Text = "toolStripStatusLabel1";
//
// frmBaseline
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(707, 499);
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.StatusBar);
this.Controls.Add(this.panel1);
this.Name = "frmBaseline";
this.Text = "Baseline";
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.splitContainer3.Panel1.ResumeLayout(false);
this.splitContainer3.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
this.splitContainer3.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.StatusBar.ResumeLayout(false);
this.StatusBar.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnSettings;
private System.Windows.Forms.Button btnBaseline;
private System.Windows.Forms.Button btnPagination;
private System.Windows.Forms.Button btnBrowse2;
private System.Windows.Forms.Button btnBrowse1;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.ListBox lbResults1;
private System.Windows.Forms.ListBox lbResults2;
private System.Windows.Forms.FolderBrowserDialog fbd;
private System.Windows.Forms.StatusStrip StatusBar;
private System.Windows.Forms.ToolStripStatusLabel tsslStatus;
private System.Windows.Forms.TextBox tbSearch;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.SplitContainer splitContainer3;
private System.Windows.Forms.ListBox lbDifferent;
private System.Windows.Forms.ListBox lbProcedures;
private System.Windows.Forms.ComboBox cbFile2;
private System.Windows.Forms.ComboBox cbFile1;
private System.Windows.Forms.CheckBox cbCaseSensitive;
private System.Windows.Forms.Button btnUC;
private System.Windows.Forms.ToolTip tt;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="tt.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>306, 17</value>
</metadata>
<metadata name="tt.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>306, 17</value>
</metadata>
<metadata name="fbd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="StatusBar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>203, 17</value>
</metadata>
</root>

150
PROMS/Baseline/frmSettings.Designer.cs generated Normal file
View File

@ -0,0 +1,150 @@
namespace Baseline
{
partial class frmSettings
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.dgv = new System.Windows.Forms.DataGridView();
this.panel1 = new System.Windows.Forms.Panel();
this.btnOK = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.dgvcSearchType = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ignoreLinesBindingSource = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ignoreLinesBindingSource)).BeginInit();
this.SuspendLayout();
//
// dgv
//
this.dgv.AutoGenerateColumns = false;
this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewCheckBoxColumn1,
this.dgvcSearchType,
this.dataGridViewTextBoxColumn3});
this.dgv.DataSource = this.ignoreLinesBindingSource;
this.dgv.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgv.Location = new System.Drawing.Point(0, 0);
this.dgv.Name = "dgv";
this.dgv.Size = new System.Drawing.Size(515, 219);
this.dgv.TabIndex = 1;
this.dgv.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgv_DataError);
//
// panel1
//
this.panel1.Controls.Add(this.btnCancel);
this.panel1.Controls.Add(this.btnOK);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 219);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(515, 77);
this.panel1.TabIndex = 2;
//
// btnOK
//
this.btnOK.Location = new System.Drawing.Point(347, 51);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23);
this.btnOK.TabIndex = 0;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// btnCancel
//
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(428, 51);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 1;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// dataGridViewCheckBoxColumn1
//
this.dataGridViewCheckBoxColumn1.DataPropertyName = "Active";
this.dataGridViewCheckBoxColumn1.FillWeight = 50F;
this.dataGridViewCheckBoxColumn1.HeaderText = "Active";
this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1";
this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
//
// dgvcSearchType
//
this.dgvcSearchType.DataPropertyName = "SearchType";
this.dgvcSearchType.HeaderText = "SearchType";
this.dgvcSearchType.Name = "dgvcSearchType";
this.dgvcSearchType.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dgvcSearchType.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "Text";
this.dataGridViewTextBoxColumn3.HeaderText = "Text";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.Width = 200;
//
// ignoreLinesBindingSource
//
this.ignoreLinesBindingSource.DataSource = typeof(Baseline.IgnoreLine);
//
// frmSettings
//
this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(515, 296);
this.Controls.Add(this.dgv);
this.Controls.Add(this.panel1);
this.Name = "frmSettings";
this.Text = "frmSettings";
this.Load += new System.EventHandler(this.frmSettings_Load);
((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit();
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.ignoreLinesBindingSource)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.BindingSource ignoreLinesBindingSource;
private System.Windows.Forms.DataGridView dgv;
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
private System.Windows.Forms.DataGridViewComboBoxColumn dgvcSearchType;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOK;
}
}

View File

@ -0,0 +1,64 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Baseline
{
public partial class frmSettings : Form
{
private IgnoreLines _MyIgnore;
public IgnoreLines MyIgnore
{
get { return _MyIgnore; }
set {
_MyIgnore = value;
dgv.DataSource=null;
//dgvcSearchType.ValueType = typeof(Relation);
//dgvcSearchType.ValueMember = "Value";
//dgvcSearchType.DisplayMember = "Display";
//dgvcSearchType.DataSource = new Relation[] { Relation.Contains, Relation.StartsWith, Relation.EndsWith, Relation.Regex }
//.Select(x => new { Display = x.ToString(), Value = x })
//.ToList();
dgv.DataSource=value;
//dgvcSearchType.DataSource =
//new List<Relation>((Relation[]) Enum.GetValues(typeof(Relation)))
//.Select(x => new { Display=x.ToString(), Value=(int)x })
//.ToList();;
}
}
public frmSettings(IgnoreLines myIgnore)
{
InitializeComponent();
_MyIgnore=myIgnore;
}
private void frmSettings_Load(object sender, EventArgs e)
{
dgv.DataSource=MyIgnore;
DataGridViewComboBoxColumn col = dgvcSearchType;
col.Name = "My Enum Column";
col.DataSource = Enum.GetValues(typeof(Relation));
col.ValueType = typeof(Relation);
}
private void dgv_DataError(object sender, DataGridViewDataErrorEventArgs e)
{
Console.WriteLine("Here");
}
private void btnOK_Click(object sender, EventArgs e)
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Close();
}
}
}

View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ignoreLinesBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ignoreLinesBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>