init
This commit is contained in:
1
DataPRO/SLICEDBMerge/.svn/entries
Normal file
1
DataPRO/SLICEDBMerge/.svn/entries
Normal file
@@ -0,0 +1 @@
|
||||
12
|
||||
1
DataPRO/SLICEDBMerge/.svn/format
Normal file
1
DataPRO/SLICEDBMerge/.svn/format
Normal file
@@ -0,0 +1 @@
|
||||
12
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SliceDBMerge
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.5444
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SliceDBMerge.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", "2.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("SliceDBMerge.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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=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>
|
||||
<data name="dgSource.ColumnInfo" xml:space="preserve">
|
||||
<value>7,1,0,0,0,95,Columns:0{Visible:False;} 1{Width:44;Style:"DataType:System.Boolean;TextAlign:LeftCenter;ImageAlign:CenterCenter;";} 2{Caption:"Serial Number";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Caption:"Description";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 4{Caption:"Sensor ID";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 5{Caption:"Desired Range";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 6{Caption:"Engineering Units";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} </value>
|
||||
</data>
|
||||
<data name="dgSource.StyleInfo" xml:space="preserve">
|
||||
<value>Normal{Font:Microsoft Sans Serif, 8.25pt;} Alternate{BackColor:Gainsboro;} Fixed{BackColor:Gray;ForeColor:White;Border:Flat,1,ControlDark,Both;BackgroundImageLayout:Hide;} Highlight{BackColor:Highlight;ForeColor:HighlightText;} Focus{} Editor{} Search{BackColor:Highlight;ForeColor:HighlightText;} Frozen{BackColor:Beige;} NewRow{ForeColor:GrayText;} EmptyArea{BackColor:AppWorkspace;Border:Flat,1,ControlDarkDark,Both;} SelectedColumnHeader{} SelectedRowHeader{} GrandTotal{BackColor:Black;ForeColor:White;} Subtotal0{BackColor:ControlDarkDark;ForeColor:White;} Subtotal1{BackColor:ControlDarkDark;ForeColor:White;} Subtotal2{BackColor:ControlDarkDark;ForeColor:White;} Subtotal3{BackColor:ControlDarkDark;ForeColor:White;} Subtotal4{BackColor:ControlDarkDark;ForeColor:White;} Subtotal5{BackColor:ControlDarkDark;ForeColor:White;} FilterEditor{} FirstCustomStyle{} </value>
|
||||
</data>
|
||||
<data name="dgDestination.ColumnInfo" xml:space="preserve">
|
||||
<value>7,1,0,0,0,95,Columns:0{Visible:False;} 1{Width:44;Visible:False;Style:"DataType:System.Boolean;TextAlign:LeftCenter;ImageAlign:CenterCenter;";} 2{Caption:"Serial Number";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Caption:"Description";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 4{Caption:"Sensor ID";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 5{Caption:"Desired Range";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 6{Caption:"Engineering Units";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} </value>
|
||||
</data>
|
||||
<data name="dgDestination.StyleInfo" xml:space="preserve">
|
||||
<value>Normal{Font:Microsoft Sans Serif, 8.25pt;} Alternate{BackColor:Gainsboro;} Fixed{BackColor:Gray;ForeColor:White;Border:Flat,1,ControlDark,Both;BackgroundImageLayout:Hide;} Highlight{BackColor:Highlight;ForeColor:HighlightText;} Focus{} Editor{} Search{BackColor:Highlight;ForeColor:HighlightText;} Frozen{BackColor:Beige;} NewRow{ForeColor:GrayText;} EmptyArea{BackColor:AppWorkspace;Border:Flat,1,ControlDarkDark,Both;} SelectedColumnHeader{} SelectedRowHeader{} GrandTotal{BackColor:Black;ForeColor:White;} Subtotal0{BackColor:ControlDarkDark;ForeColor:White;} Subtotal1{BackColor:ControlDarkDark;ForeColor:White;} Subtotal2{BackColor:ControlDarkDark;ForeColor:White;} Subtotal3{BackColor:ControlDarkDark;ForeColor:White;} Subtotal4{BackColor:ControlDarkDark;ForeColor:White;} Subtotal5{BackColor:ControlDarkDark;ForeColor:White;} FilterEditor{} FirstCustomStyle{} </value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1 @@
|
||||
C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2
|
||||
@@ -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>
|
||||
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SliceDBMerge
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnBrowse_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FolderBrowserDialog fbd = new FolderBrowserDialog())
|
||||
{
|
||||
if (fbd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
tbSourceLocation.Text = fbd.SelectedPath;
|
||||
LoadSourceDG();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnDestinationBrowse_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FolderBrowserDialog fbd = new FolderBrowserDialog())
|
||||
{
|
||||
if (fbd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
tbDestination.Text = fbd.SelectedPath;
|
||||
LoadDestinationDG();
|
||||
}
|
||||
}
|
||||
}
|
||||
private DTS.SensorDB.SensorDBTables _sourceDB;
|
||||
private void LoadSourceDG()
|
||||
{
|
||||
try
|
||||
{
|
||||
dgSource.Rows.RemoveRange(1, dgSource.Rows.Count - 1);
|
||||
if (!System.IO.File.Exists(System.IO.Path.Combine(tbSourceLocation.Text, DTS.SensorDB.SensorDBTables.DataTableFilename)))
|
||||
{
|
||||
MessageBox.Show("No sensors in directory");
|
||||
return;
|
||||
}
|
||||
_sourceDB = new DTS.SensorDB.SensorDBTables();
|
||||
_sourceDB.Load(tbSourceLocation.Text, true, null, 0, 0);
|
||||
DTS.SensorDB.SensorData[] sensors = _sourceDB.GetAllSensors();
|
||||
foreach (DTS.SensorDB.SensorData sd in sensors)
|
||||
{
|
||||
C1.Win.C1FlexGrid.Row r = dgSource.Rows.Add();
|
||||
r.UserData = sd;
|
||||
r[1] = true;
|
||||
r[2] = sd.SerialNumber;
|
||||
r[3] = sd.Comment;
|
||||
r[4] = sd.Id;
|
||||
r[5] = sd.Range.High.ToString();
|
||||
r[6] = sd.MeasurementUnit;
|
||||
}
|
||||
dgSource.AutoSizeCols();
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
private DTS.SensorDB.SensorDBTables _destination;
|
||||
private void LoadDestinationDG()
|
||||
{
|
||||
try
|
||||
{
|
||||
dgDestination.Rows.RemoveRange(1, dgDestination.Rows.Count - 1);
|
||||
_destination = new DTS.SensorDB.SensorDBTables();
|
||||
_destination.Load(tbDestination.Text, true, null, 0, 0);
|
||||
DTS.SensorDB.SensorData[] sensors = _destination.GetAllSensors();
|
||||
foreach (DTS.SensorDB.SensorData sd in sensors)
|
||||
{
|
||||
C1.Win.C1FlexGrid.Row r = dgDestination.Rows.Add();
|
||||
r.UserData = sd;
|
||||
r[1] = true;
|
||||
r[2] = sd.SerialNumber;
|
||||
r[3] = sd.Comment;
|
||||
r[4] = sd.Id;
|
||||
r[5] = sd.Range.High.ToString();
|
||||
r[6] = sd.MeasurementUnit;
|
||||
}
|
||||
dgDestination.AutoSizeCols();
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<string> errors = new List<string>();
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++)
|
||||
{
|
||||
if ((bool)dgSource[i, 1])
|
||||
{
|
||||
DTS.SensorDB.SensorData sd = dgSource.Rows[i].UserData as DTS.SensorDB.SensorData;
|
||||
if (null == sd) { continue; }
|
||||
if (null == _destination) { continue; }
|
||||
try
|
||||
{
|
||||
_destination.Add(sd);
|
||||
_destination.Save(null);
|
||||
DTS.SensorDB.SensorCalibration cal = _sourceDB.GetLatestCalibrationBySerialNumber(sd.SerialNumber);
|
||||
_destination.Add(cal);
|
||||
_destination.Save(null);
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
errors.Add(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (errors.Count > 0)
|
||||
{
|
||||
MessageBox.Show(string.Join("\n", errors.ToArray()));
|
||||
}
|
||||
LoadDestinationDG();
|
||||
}
|
||||
|
||||
private void lbSelectAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++) { dgSource[i, 1] = true; }
|
||||
}
|
||||
|
||||
private void lbInvertSelection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++) { dgSource[i, 1] = !(bool)dgSource[i, 1]; }
|
||||
}
|
||||
|
||||
private void lbClearAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++) { dgSource[i, 1] = false; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SliceDBMerge</RootNamespace>
|
||||
<AssemblyName>SliceDBMerge</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="C1.Win.C1FlexGrid.2, Version=2.6.20101.545, Culture=neutral, PublicKeyToken=79882d576c6336da, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="C1.Win.C1Input.2, Version=2.0.20102.33247, Culture=neutral, PublicKeyToken=7e7ff60f0c214f9a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="DTSInternals, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Lib\DTSInternals.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<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="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\licenses.licx" />
|
||||
<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\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>
|
||||
<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>
|
||||
@@ -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("SliceDBMerge")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SliceDBMerge")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2011")]
|
||||
[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("f9c65b8f-8630-403f-9723-db6a1ac8f776")]
|
||||
|
||||
// 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")]
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SliceDBMerge", "SliceDBMerge\SliceDBMerge.csproj", "{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensorDB", "..\SensorDB\SensorDB.csproj", "{444EF10C-046E-47AD-A9A5-17318D488723}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,218 @@
|
||||
namespace SliceDBMerge
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.dgSource = new C1.Win.C1FlexGrid.C1FlexGrid();
|
||||
this.gbSource = new System.Windows.Forms.GroupBox();
|
||||
this.tbSourceLocation = new System.Windows.Forms.TextBox();
|
||||
this.btnBrowse = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btnDestinationBrowse = new System.Windows.Forms.Button();
|
||||
this.tbDestination = new System.Windows.Forms.TextBox();
|
||||
this.dgDestination = new C1.Win.C1FlexGrid.C1FlexGrid();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.lbSelectAll = new System.Windows.Forms.LinkLabel();
|
||||
this.lbClearAll = new System.Windows.Forms.LinkLabel();
|
||||
this.lbInvertSelection = new System.Windows.Forms.LinkLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgSource)).BeginInit();
|
||||
this.gbSource.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgDestination)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dgSource
|
||||
//
|
||||
this.dgSource.ColumnInfo = resources.GetString("dgSource.ColumnInfo");
|
||||
this.dgSource.ExtendLastCol = true;
|
||||
this.dgSource.Location = new System.Drawing.Point(6, 45);
|
||||
this.dgSource.Name = "dgSource";
|
||||
this.dgSource.Rows.Count = 1;
|
||||
this.dgSource.Rows.DefaultSize = 19;
|
||||
this.dgSource.Size = new System.Drawing.Size(740, 185);
|
||||
this.dgSource.StyleInfo = resources.GetString("dgSource.StyleInfo");
|
||||
this.dgSource.TabIndex = 0;
|
||||
//
|
||||
// gbSource
|
||||
//
|
||||
this.gbSource.Controls.Add(this.lbInvertSelection);
|
||||
this.gbSource.Controls.Add(this.lbClearAll);
|
||||
this.gbSource.Controls.Add(this.lbSelectAll);
|
||||
this.gbSource.Controls.Add(this.btnBrowse);
|
||||
this.gbSource.Controls.Add(this.tbSourceLocation);
|
||||
this.gbSource.Controls.Add(this.dgSource);
|
||||
this.gbSource.Location = new System.Drawing.Point(13, 12);
|
||||
this.gbSource.Name = "gbSource";
|
||||
this.gbSource.Size = new System.Drawing.Size(752, 266);
|
||||
this.gbSource.TabIndex = 1;
|
||||
this.gbSource.TabStop = false;
|
||||
this.gbSource.Text = "Source";
|
||||
//
|
||||
// tbSourceLocation
|
||||
//
|
||||
this.tbSourceLocation.Location = new System.Drawing.Point(7, 20);
|
||||
this.tbSourceLocation.Name = "tbSourceLocation";
|
||||
this.tbSourceLocation.ReadOnly = true;
|
||||
this.tbSourceLocation.Size = new System.Drawing.Size(636, 20);
|
||||
this.tbSourceLocation.TabIndex = 1;
|
||||
//
|
||||
// btnBrowse
|
||||
//
|
||||
this.btnBrowse.Location = new System.Drawing.Point(661, 18);
|
||||
this.btnBrowse.Name = "btnBrowse";
|
||||
this.btnBrowse.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnBrowse.TabIndex = 2;
|
||||
this.btnBrowse.Text = "Browse";
|
||||
this.btnBrowse.UseVisualStyleBackColor = true;
|
||||
this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.dgDestination);
|
||||
this.groupBox1.Controls.Add(this.btnDestinationBrowse);
|
||||
this.groupBox1.Controls.Add(this.tbDestination);
|
||||
this.groupBox1.Location = new System.Drawing.Point(13, 327);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(752, 295);
|
||||
this.groupBox1.TabIndex = 2;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Destination";
|
||||
//
|
||||
// btnDestinationBrowse
|
||||
//
|
||||
this.btnDestinationBrowse.Location = new System.Drawing.Point(661, 17);
|
||||
this.btnDestinationBrowse.Name = "btnDestinationBrowse";
|
||||
this.btnDestinationBrowse.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnDestinationBrowse.TabIndex = 4;
|
||||
this.btnDestinationBrowse.Text = "Browse";
|
||||
this.btnDestinationBrowse.UseVisualStyleBackColor = true;
|
||||
this.btnDestinationBrowse.Click += new System.EventHandler(this.btnDestinationBrowse_Click);
|
||||
//
|
||||
// tbDestination
|
||||
//
|
||||
this.tbDestination.Location = new System.Drawing.Point(7, 19);
|
||||
this.tbDestination.Name = "tbDestination";
|
||||
this.tbDestination.ReadOnly = true;
|
||||
this.tbDestination.Size = new System.Drawing.Size(636, 20);
|
||||
this.tbDestination.TabIndex = 3;
|
||||
//
|
||||
// dgDestination
|
||||
//
|
||||
this.dgDestination.ColumnInfo = resources.GetString("dgDestination.ColumnInfo");
|
||||
this.dgDestination.ExtendLastCol = true;
|
||||
this.dgDestination.Location = new System.Drawing.Point(7, 45);
|
||||
this.dgDestination.Name = "dgDestination";
|
||||
this.dgDestination.Rows.Count = 1;
|
||||
this.dgDestination.Rows.DefaultSize = 19;
|
||||
this.dgDestination.Size = new System.Drawing.Size(740, 244);
|
||||
this.dgDestination.StyleInfo = resources.GetString("dgDestination.StyleInfo");
|
||||
this.dgDestination.TabIndex = 5;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(350, 289);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 3;
|
||||
this.button1.Text = "Merge";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// lbSelectAll
|
||||
//
|
||||
this.lbSelectAll.AutoSize = true;
|
||||
this.lbSelectAll.Location = new System.Drawing.Point(7, 237);
|
||||
this.lbSelectAll.Name = "lbSelectAll";
|
||||
this.lbSelectAll.Size = new System.Drawing.Size(51, 13);
|
||||
this.lbSelectAll.TabIndex = 3;
|
||||
this.lbSelectAll.TabStop = true;
|
||||
this.lbSelectAll.Text = "Select All";
|
||||
this.lbSelectAll.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lbSelectAll_LinkClicked);
|
||||
//
|
||||
// lbClearAll
|
||||
//
|
||||
this.lbClearAll.AutoSize = true;
|
||||
this.lbClearAll.Location = new System.Drawing.Point(701, 237);
|
||||
this.lbClearAll.Name = "lbClearAll";
|
||||
this.lbClearAll.Size = new System.Drawing.Size(45, 13);
|
||||
this.lbClearAll.TabIndex = 4;
|
||||
this.lbClearAll.TabStop = true;
|
||||
this.lbClearAll.Text = "Clear All";
|
||||
this.lbClearAll.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lbClearAll_LinkClicked);
|
||||
//
|
||||
// lbInvertSelection
|
||||
//
|
||||
this.lbInvertSelection.AutoSize = true;
|
||||
this.lbInvertSelection.Location = new System.Drawing.Point(334, 237);
|
||||
this.lbInvertSelection.Name = "lbInvertSelection";
|
||||
this.lbInvertSelection.Size = new System.Drawing.Size(81, 13);
|
||||
this.lbInvertSelection.TabIndex = 5;
|
||||
this.lbInvertSelection.TabStop = true;
|
||||
this.lbInvertSelection.Text = "Invert Selection";
|
||||
this.lbInvertSelection.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lbInvertSelection_LinkClicked);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(777, 670);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.gbSource);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Name = "Form1";
|
||||
this.Text = "Merge Sensor Databases";
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgSource)).EndInit();
|
||||
this.gbSource.ResumeLayout(false);
|
||||
this.gbSource.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgDestination)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private C1.Win.C1FlexGrid.C1FlexGrid dgSource;
|
||||
private System.Windows.Forms.GroupBox gbSource;
|
||||
private System.Windows.Forms.Button btnBrowse;
|
||||
private System.Windows.Forms.TextBox tbSourceLocation;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private C1.Win.C1FlexGrid.C1FlexGrid dgDestination;
|
||||
private System.Windows.Forms.Button btnDestinationBrowse;
|
||||
private System.Windows.Forms.TextBox tbDestination;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.LinkLabel lbInvertSelection;
|
||||
private System.Windows.Forms.LinkLabel lbClearAll;
|
||||
private System.Windows.Forms.LinkLabel lbSelectAll;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.5444
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SliceDBMerge.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
DataPRO/SLICEDBMerge/.svn/wc.db
Normal file
BIN
DataPRO/SLICEDBMerge/.svn/wc.db
Normal file
Binary file not shown.
0
DataPRO/SLICEDBMerge/.svn/wc.db-journal
Normal file
0
DataPRO/SLICEDBMerge/.svn/wc.db-journal
Normal file
218
DataPRO/SLICEDBMerge/SLICEDBMerge/Form1.Designer.cs
generated
Normal file
218
DataPRO/SLICEDBMerge/SLICEDBMerge/Form1.Designer.cs
generated
Normal file
@@ -0,0 +1,218 @@
|
||||
namespace SliceDBMerge
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.dgSource = new C1.Win.C1FlexGrid.C1FlexGrid();
|
||||
this.gbSource = new System.Windows.Forms.GroupBox();
|
||||
this.tbSourceLocation = new System.Windows.Forms.TextBox();
|
||||
this.btnBrowse = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btnDestinationBrowse = new System.Windows.Forms.Button();
|
||||
this.tbDestination = new System.Windows.Forms.TextBox();
|
||||
this.dgDestination = new C1.Win.C1FlexGrid.C1FlexGrid();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.lbSelectAll = new System.Windows.Forms.LinkLabel();
|
||||
this.lbClearAll = new System.Windows.Forms.LinkLabel();
|
||||
this.lbInvertSelection = new System.Windows.Forms.LinkLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgSource)).BeginInit();
|
||||
this.gbSource.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgDestination)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dgSource
|
||||
//
|
||||
this.dgSource.ColumnInfo = resources.GetString("dgSource.ColumnInfo");
|
||||
this.dgSource.ExtendLastCol = true;
|
||||
this.dgSource.Location = new System.Drawing.Point(6, 45);
|
||||
this.dgSource.Name = "dgSource";
|
||||
this.dgSource.Rows.Count = 1;
|
||||
this.dgSource.Rows.DefaultSize = 19;
|
||||
this.dgSource.Size = new System.Drawing.Size(740, 185);
|
||||
this.dgSource.StyleInfo = resources.GetString("dgSource.StyleInfo");
|
||||
this.dgSource.TabIndex = 0;
|
||||
//
|
||||
// gbSource
|
||||
//
|
||||
this.gbSource.Controls.Add(this.lbInvertSelection);
|
||||
this.gbSource.Controls.Add(this.lbClearAll);
|
||||
this.gbSource.Controls.Add(this.lbSelectAll);
|
||||
this.gbSource.Controls.Add(this.btnBrowse);
|
||||
this.gbSource.Controls.Add(this.tbSourceLocation);
|
||||
this.gbSource.Controls.Add(this.dgSource);
|
||||
this.gbSource.Location = new System.Drawing.Point(13, 12);
|
||||
this.gbSource.Name = "gbSource";
|
||||
this.gbSource.Size = new System.Drawing.Size(752, 266);
|
||||
this.gbSource.TabIndex = 1;
|
||||
this.gbSource.TabStop = false;
|
||||
this.gbSource.Text = "Source";
|
||||
//
|
||||
// tbSourceLocation
|
||||
//
|
||||
this.tbSourceLocation.Location = new System.Drawing.Point(7, 20);
|
||||
this.tbSourceLocation.Name = "tbSourceLocation";
|
||||
this.tbSourceLocation.ReadOnly = true;
|
||||
this.tbSourceLocation.Size = new System.Drawing.Size(636, 20);
|
||||
this.tbSourceLocation.TabIndex = 1;
|
||||
//
|
||||
// btnBrowse
|
||||
//
|
||||
this.btnBrowse.Location = new System.Drawing.Point(661, 18);
|
||||
this.btnBrowse.Name = "btnBrowse";
|
||||
this.btnBrowse.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnBrowse.TabIndex = 2;
|
||||
this.btnBrowse.Text = "Browse";
|
||||
this.btnBrowse.UseVisualStyleBackColor = true;
|
||||
this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.dgDestination);
|
||||
this.groupBox1.Controls.Add(this.btnDestinationBrowse);
|
||||
this.groupBox1.Controls.Add(this.tbDestination);
|
||||
this.groupBox1.Location = new System.Drawing.Point(13, 327);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(752, 295);
|
||||
this.groupBox1.TabIndex = 2;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Destination";
|
||||
//
|
||||
// btnDestinationBrowse
|
||||
//
|
||||
this.btnDestinationBrowse.Location = new System.Drawing.Point(661, 17);
|
||||
this.btnDestinationBrowse.Name = "btnDestinationBrowse";
|
||||
this.btnDestinationBrowse.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnDestinationBrowse.TabIndex = 4;
|
||||
this.btnDestinationBrowse.Text = "Browse";
|
||||
this.btnDestinationBrowse.UseVisualStyleBackColor = true;
|
||||
this.btnDestinationBrowse.Click += new System.EventHandler(this.btnDestinationBrowse_Click);
|
||||
//
|
||||
// tbDestination
|
||||
//
|
||||
this.tbDestination.Location = new System.Drawing.Point(7, 19);
|
||||
this.tbDestination.Name = "tbDestination";
|
||||
this.tbDestination.ReadOnly = true;
|
||||
this.tbDestination.Size = new System.Drawing.Size(636, 20);
|
||||
this.tbDestination.TabIndex = 3;
|
||||
//
|
||||
// dgDestination
|
||||
//
|
||||
this.dgDestination.ColumnInfo = resources.GetString("dgDestination.ColumnInfo");
|
||||
this.dgDestination.ExtendLastCol = true;
|
||||
this.dgDestination.Location = new System.Drawing.Point(7, 45);
|
||||
this.dgDestination.Name = "dgDestination";
|
||||
this.dgDestination.Rows.Count = 1;
|
||||
this.dgDestination.Rows.DefaultSize = 19;
|
||||
this.dgDestination.Size = new System.Drawing.Size(740, 244);
|
||||
this.dgDestination.StyleInfo = resources.GetString("dgDestination.StyleInfo");
|
||||
this.dgDestination.TabIndex = 5;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(350, 289);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 3;
|
||||
this.button1.Text = "Merge";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// lbSelectAll
|
||||
//
|
||||
this.lbSelectAll.AutoSize = true;
|
||||
this.lbSelectAll.Location = new System.Drawing.Point(7, 237);
|
||||
this.lbSelectAll.Name = "lbSelectAll";
|
||||
this.lbSelectAll.Size = new System.Drawing.Size(51, 13);
|
||||
this.lbSelectAll.TabIndex = 3;
|
||||
this.lbSelectAll.TabStop = true;
|
||||
this.lbSelectAll.Text = "Select All";
|
||||
this.lbSelectAll.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lbSelectAll_LinkClicked);
|
||||
//
|
||||
// lbClearAll
|
||||
//
|
||||
this.lbClearAll.AutoSize = true;
|
||||
this.lbClearAll.Location = new System.Drawing.Point(701, 237);
|
||||
this.lbClearAll.Name = "lbClearAll";
|
||||
this.lbClearAll.Size = new System.Drawing.Size(45, 13);
|
||||
this.lbClearAll.TabIndex = 4;
|
||||
this.lbClearAll.TabStop = true;
|
||||
this.lbClearAll.Text = "Clear All";
|
||||
this.lbClearAll.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lbClearAll_LinkClicked);
|
||||
//
|
||||
// lbInvertSelection
|
||||
//
|
||||
this.lbInvertSelection.AutoSize = true;
|
||||
this.lbInvertSelection.Location = new System.Drawing.Point(334, 237);
|
||||
this.lbInvertSelection.Name = "lbInvertSelection";
|
||||
this.lbInvertSelection.Size = new System.Drawing.Size(81, 13);
|
||||
this.lbInvertSelection.TabIndex = 5;
|
||||
this.lbInvertSelection.TabStop = true;
|
||||
this.lbInvertSelection.Text = "Invert Selection";
|
||||
this.lbInvertSelection.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lbInvertSelection_LinkClicked);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(777, 670);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.gbSource);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Name = "Form1";
|
||||
this.Text = "Merge Sensor Databases";
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgSource)).EndInit();
|
||||
this.gbSource.ResumeLayout(false);
|
||||
this.gbSource.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgDestination)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private C1.Win.C1FlexGrid.C1FlexGrid dgSource;
|
||||
private System.Windows.Forms.GroupBox gbSource;
|
||||
private System.Windows.Forms.Button btnBrowse;
|
||||
private System.Windows.Forms.TextBox tbSourceLocation;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private C1.Win.C1FlexGrid.C1FlexGrid dgDestination;
|
||||
private System.Windows.Forms.Button btnDestinationBrowse;
|
||||
private System.Windows.Forms.TextBox tbDestination;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.LinkLabel lbInvertSelection;
|
||||
private System.Windows.Forms.LinkLabel lbClearAll;
|
||||
private System.Windows.Forms.LinkLabel lbSelectAll;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
147
DataPRO/SLICEDBMerge/SLICEDBMerge/Form1.cs
Normal file
147
DataPRO/SLICEDBMerge/SLICEDBMerge/Form1.cs
Normal file
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SliceDBMerge
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnBrowse_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FolderBrowserDialog fbd = new FolderBrowserDialog())
|
||||
{
|
||||
if (fbd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
tbSourceLocation.Text = fbd.SelectedPath;
|
||||
LoadSourceDG();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnDestinationBrowse_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FolderBrowserDialog fbd = new FolderBrowserDialog())
|
||||
{
|
||||
if (fbd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
tbDestination.Text = fbd.SelectedPath;
|
||||
LoadDestinationDG();
|
||||
}
|
||||
}
|
||||
}
|
||||
private DTS.SensorDB.SensorDBTables _sourceDB;
|
||||
private void LoadSourceDG()
|
||||
{
|
||||
try
|
||||
{
|
||||
dgSource.Rows.RemoveRange(1, dgSource.Rows.Count - 1);
|
||||
if (!System.IO.File.Exists(System.IO.Path.Combine(tbSourceLocation.Text, DTS.SensorDB.SensorDBTables.DataTableFilename)))
|
||||
{
|
||||
MessageBox.Show("No sensors in directory");
|
||||
return;
|
||||
}
|
||||
_sourceDB = new DTS.SensorDB.SensorDBTables();
|
||||
_sourceDB.Load(tbSourceLocation.Text, true, null, 0, 0);
|
||||
DTS.SensorDB.SensorData[] sensors = _sourceDB.GetAllSensors();
|
||||
foreach (DTS.SensorDB.SensorData sd in sensors)
|
||||
{
|
||||
C1.Win.C1FlexGrid.Row r = dgSource.Rows.Add();
|
||||
r.UserData = sd;
|
||||
r[1] = true;
|
||||
r[2] = sd.SerialNumber;
|
||||
r[3] = sd.Comment;
|
||||
r[4] = sd.Id;
|
||||
r[5] = sd.Range.High.ToString();
|
||||
r[6] = sd.MeasurementUnit;
|
||||
}
|
||||
dgSource.AutoSizeCols();
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
private DTS.SensorDB.SensorDBTables _destination;
|
||||
private void LoadDestinationDG()
|
||||
{
|
||||
try
|
||||
{
|
||||
dgDestination.Rows.RemoveRange(1, dgDestination.Rows.Count - 1);
|
||||
_destination = new DTS.SensorDB.SensorDBTables();
|
||||
_destination.Load(tbDestination.Text, true, null, 0, 0);
|
||||
DTS.SensorDB.SensorData[] sensors = _destination.GetAllSensors();
|
||||
foreach (DTS.SensorDB.SensorData sd in sensors)
|
||||
{
|
||||
C1.Win.C1FlexGrid.Row r = dgDestination.Rows.Add();
|
||||
r.UserData = sd;
|
||||
r[1] = true;
|
||||
r[2] = sd.SerialNumber;
|
||||
r[3] = sd.Comment;
|
||||
r[4] = sd.Id;
|
||||
r[5] = sd.Range.High.ToString();
|
||||
r[6] = sd.MeasurementUnit;
|
||||
}
|
||||
dgDestination.AutoSizeCols();
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<string> errors = new List<string>();
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++)
|
||||
{
|
||||
if ((bool)dgSource[i, 1])
|
||||
{
|
||||
DTS.SensorDB.SensorData sd = dgSource.Rows[i].UserData as DTS.SensorDB.SensorData;
|
||||
if (null == sd) { continue; }
|
||||
if (null == _destination) { continue; }
|
||||
try
|
||||
{
|
||||
_destination.Add(sd);
|
||||
_destination.Save(null);
|
||||
DTS.SensorDB.SensorCalibration cal = _sourceDB.GetLatestCalibrationBySerialNumber(sd.SerialNumber);
|
||||
_destination.Add(cal);
|
||||
_destination.Save(null);
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
errors.Add(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (errors.Count > 0)
|
||||
{
|
||||
MessageBox.Show(string.Join("\n", errors.ToArray()));
|
||||
}
|
||||
LoadDestinationDG();
|
||||
}
|
||||
|
||||
private void lbSelectAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++) { dgSource[i, 1] = true; }
|
||||
}
|
||||
|
||||
private void lbInvertSelection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++) { dgSource[i, 1] = !(bool)dgSource[i, 1]; }
|
||||
}
|
||||
|
||||
private void lbClearAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
for (int i = 1; i < dgSource.Rows.Count; i++) { dgSource[i, 1] = false; }
|
||||
}
|
||||
}
|
||||
}
|
||||
132
DataPRO/SLICEDBMerge/SLICEDBMerge/Form1.resx
Normal file
132
DataPRO/SLICEDBMerge/SLICEDBMerge/Form1.resx
Normal 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=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>
|
||||
<data name="dgSource.ColumnInfo" xml:space="preserve">
|
||||
<value>7,1,0,0,0,95,Columns:0{Visible:False;} 1{Width:44;Style:"DataType:System.Boolean;TextAlign:LeftCenter;ImageAlign:CenterCenter;";} 2{Caption:"Serial Number";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Caption:"Description";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 4{Caption:"Sensor ID";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 5{Caption:"Desired Range";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 6{Caption:"Engineering Units";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} </value>
|
||||
</data>
|
||||
<data name="dgSource.StyleInfo" xml:space="preserve">
|
||||
<value>Normal{Font:Microsoft Sans Serif, 8.25pt;} Alternate{BackColor:Gainsboro;} Fixed{BackColor:Gray;ForeColor:White;Border:Flat,1,ControlDark,Both;BackgroundImageLayout:Hide;} Highlight{BackColor:Highlight;ForeColor:HighlightText;} Focus{} Editor{} Search{BackColor:Highlight;ForeColor:HighlightText;} Frozen{BackColor:Beige;} NewRow{ForeColor:GrayText;} EmptyArea{BackColor:AppWorkspace;Border:Flat,1,ControlDarkDark,Both;} SelectedColumnHeader{} SelectedRowHeader{} GrandTotal{BackColor:Black;ForeColor:White;} Subtotal0{BackColor:ControlDarkDark;ForeColor:White;} Subtotal1{BackColor:ControlDarkDark;ForeColor:White;} Subtotal2{BackColor:ControlDarkDark;ForeColor:White;} Subtotal3{BackColor:ControlDarkDark;ForeColor:White;} Subtotal4{BackColor:ControlDarkDark;ForeColor:White;} Subtotal5{BackColor:ControlDarkDark;ForeColor:White;} FilterEditor{} FirstCustomStyle{} </value>
|
||||
</data>
|
||||
<data name="dgDestination.ColumnInfo" xml:space="preserve">
|
||||
<value>7,1,0,0,0,95,Columns:0{Visible:False;} 1{Width:44;Visible:False;Style:"DataType:System.Boolean;TextAlign:LeftCenter;ImageAlign:CenterCenter;";} 2{Caption:"Serial Number";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Caption:"Description";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 4{Caption:"Sensor ID";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 5{Caption:"Desired Range";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 6{Caption:"Engineering Units";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} </value>
|
||||
</data>
|
||||
<data name="dgDestination.StyleInfo" xml:space="preserve">
|
||||
<value>Normal{Font:Microsoft Sans Serif, 8.25pt;} Alternate{BackColor:Gainsboro;} Fixed{BackColor:Gray;ForeColor:White;Border:Flat,1,ControlDark,Both;BackgroundImageLayout:Hide;} Highlight{BackColor:Highlight;ForeColor:HighlightText;} Focus{} Editor{} Search{BackColor:Highlight;ForeColor:HighlightText;} Frozen{BackColor:Beige;} NewRow{ForeColor:GrayText;} EmptyArea{BackColor:AppWorkspace;Border:Flat,1,ControlDarkDark,Both;} SelectedColumnHeader{} SelectedRowHeader{} GrandTotal{BackColor:Black;ForeColor:White;} Subtotal0{BackColor:ControlDarkDark;ForeColor:White;} Subtotal1{BackColor:ControlDarkDark;ForeColor:White;} Subtotal2{BackColor:ControlDarkDark;ForeColor:White;} Subtotal3{BackColor:ControlDarkDark;ForeColor:White;} Subtotal4{BackColor:ControlDarkDark;ForeColor:White;} Subtotal5{BackColor:ControlDarkDark;ForeColor:White;} FilterEditor{} FirstCustomStyle{} </value>
|
||||
</data>
|
||||
</root>
|
||||
21
DataPRO/SLICEDBMerge/SLICEDBMerge/Program.cs
Normal file
21
DataPRO/SLICEDBMerge/SLICEDBMerge/Program.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SliceDBMerge
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
36
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/AssemblyInfo.cs
Normal file
36
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/AssemblyInfo.cs
Normal 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("SliceDBMerge")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SliceDBMerge")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2011")]
|
||||
[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("f9c65b8f-8630-403f-9723-db6a1ac8f776")]
|
||||
|
||||
// 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")]
|
||||
71
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/Resources.Designer.cs
generated
Normal file
71
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.5444
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SliceDBMerge.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", "2.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("SliceDBMerge.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/Resources.resx
Normal file
117
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/Resources.resx
Normal 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>
|
||||
30
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/Settings.Designer.cs
generated
Normal file
30
DataPRO/SLICEDBMerge/SLICEDBMerge/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.5444
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SliceDBMerge.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1 @@
|
||||
C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2
|
||||
100
DataPRO/SLICEDBMerge/SLICEDBMerge/SliceDBMerge.csproj
Normal file
100
DataPRO/SLICEDBMerge/SLICEDBMerge/SliceDBMerge.csproj
Normal file
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>SliceDBMerge</RootNamespace>
|
||||
<AssemblyName>SliceDBMerge</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="C1.Win.C1FlexGrid.2, Version=2.6.20101.545, Culture=neutral, PublicKeyToken=79882d576c6336da, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="C1.Win.C1Input.2, Version=2.0.20102.33247, Culture=neutral, PublicKeyToken=7e7ff60f0c214f9a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="DTSInternals, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Lib\DTSInternals.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<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="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\licenses.licx" />
|
||||
<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\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>
|
||||
<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>
|
||||
26
DataPRO/SLICEDBMerge/SliceDBMerge.sln
Normal file
26
DataPRO/SLICEDBMerge/SliceDBMerge.sln
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SliceDBMerge", "SliceDBMerge\SliceDBMerge.csproj", "{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SensorDB", "..\SensorDB\SensorDB.csproj", "{444EF10C-046E-47AD-A9A5-17318D488723}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9032C3D5-02BF-4BB5-BC6E-B49104AA5056}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{444EF10C-046E-47AD-A9A5-17318D488723}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user