Dmitriy Golubev
7 years ago
19 changed files with 705 additions and 16 deletions
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||||
|
<configuration> |
||||||
|
<startup> |
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> |
||||||
|
</startup> |
||||||
|
</configuration> |
@ -0,0 +1,103 @@ |
|||||||
|
namespace Vlimport |
||||||
|
{ |
||||||
|
partial class mainForm |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// Обязательная переменная конструктора. |
||||||
|
/// </summary> |
||||||
|
private System.ComponentModel.IContainer components = null; |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Освободить все используемые ресурсы. |
||||||
|
/// </summary> |
||||||
|
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param> |
||||||
|
protected override void Dispose(bool disposing) |
||||||
|
{ |
||||||
|
if (disposing && (components != null)) |
||||||
|
{ |
||||||
|
components.Dispose(); |
||||||
|
} |
||||||
|
base.Dispose(disposing); |
||||||
|
} |
||||||
|
|
||||||
|
#region Код, автоматически созданный конструктором форм Windows |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Требуемый метод для поддержки конструктора — не изменяйте |
||||||
|
/// содержимое этого метода с помощью редактора кода. |
||||||
|
/// </summary> |
||||||
|
private void InitializeComponent() |
||||||
|
{ |
||||||
|
this.ItemList = new System.Windows.Forms.ListBox(); |
||||||
|
this.SelectButton = new System.Windows.Forms.Button(); |
||||||
|
this.AcceptButton = new System.Windows.Forms.Button(); |
||||||
|
this.FilePathBox = new System.Windows.Forms.TextBox(); |
||||||
|
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); |
||||||
|
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); |
||||||
|
this.SuspendLayout(); |
||||||
|
// |
||||||
|
// ItemList |
||||||
|
// |
||||||
|
this.ItemList.FormattingEnabled = true; |
||||||
|
this.ItemList.Location = new System.Drawing.Point(13, 39); |
||||||
|
this.ItemList.Name = "ItemList"; |
||||||
|
this.ItemList.Size = new System.Drawing.Size(529, 199); |
||||||
|
this.ItemList.TabIndex = 0; |
||||||
|
// |
||||||
|
// SelectButton |
||||||
|
// |
||||||
|
this.SelectButton.Location = new System.Drawing.Point(13, 254); |
||||||
|
this.SelectButton.Name = "SelectButton"; |
||||||
|
this.SelectButton.Size = new System.Drawing.Size(109, 23); |
||||||
|
this.SelectButton.TabIndex = 1; |
||||||
|
this.SelectButton.Text = "Выбрать файл"; |
||||||
|
this.SelectButton.UseVisualStyleBackColor = true; |
||||||
|
this.SelectButton.Click += new System.EventHandler(this.SelectButton_Click); |
||||||
|
// |
||||||
|
// AcceptButton |
||||||
|
// |
||||||
|
this.AcceptButton.Location = new System.Drawing.Point(418, 253); |
||||||
|
this.AcceptButton.Name = "AcceptButton"; |
||||||
|
this.AcceptButton.Size = new System.Drawing.Size(123, 23); |
||||||
|
this.AcceptButton.TabIndex = 2; |
||||||
|
this.AcceptButton.Text = "Добавить значения"; |
||||||
|
this.AcceptButton.UseVisualStyleBackColor = true; |
||||||
|
// |
||||||
|
// FilePathBox |
||||||
|
// |
||||||
|
this.FilePathBox.Location = new System.Drawing.Point(13, 13); |
||||||
|
this.FilePathBox.Name = "FilePathBox"; |
||||||
|
this.FilePathBox.Size = new System.Drawing.Size(528, 20); |
||||||
|
this.FilePathBox.TabIndex = 3; |
||||||
|
// |
||||||
|
// openFileDialog1 |
||||||
|
// |
||||||
|
this.openFileDialog1.FileName = "openFileDialog1"; |
||||||
|
// |
||||||
|
// mainForm |
||||||
|
// |
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||||
|
this.ClientSize = new System.Drawing.Size(554, 289); |
||||||
|
this.Controls.Add(this.FilePathBox); |
||||||
|
this.Controls.Add(this.AcceptButton); |
||||||
|
this.Controls.Add(this.SelectButton); |
||||||
|
this.Controls.Add(this.ItemList); |
||||||
|
this.Name = "mainForm"; |
||||||
|
this.Text = "Перенос значений"; |
||||||
|
this.ResumeLayout(false); |
||||||
|
this.PerformLayout(); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
private System.Windows.Forms.ListBox ItemList; |
||||||
|
private System.Windows.Forms.Button SelectButton; |
||||||
|
private System.Windows.Forms.Button AcceptButton; |
||||||
|
private System.Windows.Forms.TextBox FilePathBox; |
||||||
|
private System.Windows.Forms.OpenFileDialog openFileDialog1; |
||||||
|
private System.Windows.Forms.SaveFileDialog saveFileDialog1; |
||||||
|
} |
||||||
|
} |
||||||
|
|
@ -0,0 +1,41 @@ |
|||||||
|
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; |
||||||
|
using System.IO; |
||||||
|
|
||||||
|
namespace Vlimport |
||||||
|
{ |
||||||
|
public partial class mainForm : Form |
||||||
|
{ |
||||||
|
public mainForm() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
|
||||||
|
openFileDialog1.Filter = "Text files(*.xml)|*.xml|All files(*.*)|*.*"; |
||||||
|
saveFileDialog1.Filter = "Text files(*.xml)|*.xml|All files(*.*)|*.*"; |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
private void SelectButton_Click(object sender, EventArgs e) |
||||||
|
{ |
||||||
|
ItemList.Items.Clear(); |
||||||
|
if (openFileDialog1.ShowDialog() == DialogResult.Cancel) |
||||||
|
return; |
||||||
|
// получаем выбранный файл |
||||||
|
string filename = openFileDialog1.FileName; |
||||||
|
// читаем файл в строку |
||||||
|
string fileText = System.IO.File.ReadAllText(filename); |
||||||
|
|
||||||
|
FilePathBox.Text = filename.ToString(); |
||||||
|
Transporter tr = new Transporter(); |
||||||
|
tr.CollectItems(filename, ItemList); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -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="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||||
|
<value>17, 17</value> |
||||||
|
</metadata> |
||||||
|
<metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||||
|
<value>157, 17</value> |
||||||
|
</metadata> |
||||||
|
</root> |
@ -0,0 +1,22 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Threading.Tasks; |
||||||
|
using System.Windows.Forms; |
||||||
|
|
||||||
|
namespace Vlimport |
||||||
|
{ |
||||||
|
static class Program |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// Главная точка входа для приложения. |
||||||
|
/// </summary> |
||||||
|
[STAThread] |
||||||
|
static void Main() |
||||||
|
{ |
||||||
|
Application.EnableVisualStyles(); |
||||||
|
Application.SetCompatibleTextRenderingDefault(false); |
||||||
|
Application.Run(new mainForm()); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,36 @@ |
|||||||
|
using System.Reflection; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
using System.Runtime.InteropServices; |
||||||
|
|
||||||
|
// Общие сведения об этой сборке предоставляются следующим набором |
||||||
|
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, |
||||||
|
// связанные со сборкой. |
||||||
|
[assembly: AssemblyTitle("Vlimport")] |
||||||
|
[assembly: AssemblyDescription("")] |
||||||
|
[assembly: AssemblyConfiguration("")] |
||||||
|
[assembly: AssemblyCompany("")] |
||||||
|
[assembly: AssemblyProduct("Vlimport")] |
||||||
|
[assembly: AssemblyCopyright("Copyright © 2018")] |
||||||
|
[assembly: AssemblyTrademark("")] |
||||||
|
[assembly: AssemblyCulture("")] |
||||||
|
|
||||||
|
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми |
||||||
|
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через |
||||||
|
// COM, задайте атрибуту ComVisible значение TRUE для этого типа. |
||||||
|
[assembly: ComVisible(false)] |
||||||
|
|
||||||
|
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM |
||||||
|
[assembly: Guid("95fb88a3-2bfd-49ad-b6db-39e402a47f75")] |
||||||
|
|
||||||
|
// Сведения о версии сборки состоят из следующих четырех значений: |
||||||
|
// |
||||||
|
// Основной номер версии |
||||||
|
// Дополнительный номер версии |
||||||
|
// Номер сборки |
||||||
|
// Редакция |
||||||
|
// |
||||||
|
// Можно задать все значения или принять номер сборки и номер редакции по умолчанию. |
||||||
|
// используя "*", как показано ниже: |
||||||
|
// [assembly: AssemblyVersion("1.0.*")] |
||||||
|
[assembly: AssemblyVersion("1.0.0.0")] |
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")] |
@ -0,0 +1,71 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// Этот код создан программным средством. |
||||||
|
// Версия среды выполнения: 4.0.30319.42000 |
||||||
|
// |
||||||
|
// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если |
||||||
|
// код создан повторно. |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace Vlimport.Properties |
||||||
|
{ |
||||||
|
|
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Класс ресурсов со строгим типом для поиска локализованных строк и пр. |
||||||
|
/// </summary> |
||||||
|
// Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder |
||||||
|
// класс с помощью таких средств, как ResGen или Visual Studio. |
||||||
|
// Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen |
||||||
|
// с параметром /str или заново постройте свой VS-проект. |
||||||
|
[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> |
||||||
|
/// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. |
||||||
|
/// </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("Vlimport.Properties.Resources", typeof(Resources).Assembly); |
||||||
|
resourceMan = temp; |
||||||
|
} |
||||||
|
return resourceMan; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Переопределяет свойство CurrentUICulture текущего потока для всех |
||||||
|
/// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. |
||||||
|
/// </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,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,30 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <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 Vlimport.Properties |
||||||
|
{ |
||||||
|
|
||||||
|
|
||||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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,48 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Threading.Tasks; |
||||||
|
using System.Xml; |
||||||
|
using System.Xml.XPath; |
||||||
|
using System.IO; |
||||||
|
using System.Xml.Linq; |
||||||
|
using Wmhelp.XPath2; |
||||||
|
using System.Windows.Forms; |
||||||
|
|
||||||
|
namespace Vlimport |
||||||
|
{ |
||||||
|
public class Transporter |
||||||
|
{ |
||||||
|
public void CollectItems(string filePath, ListBox Itemlist) |
||||||
|
{ |
||||||
|
|
||||||
|
XmlDocument xDoc = new XmlDocument(); |
||||||
|
xDoc.Load(filePath.ToString()); |
||||||
|
XmlElement xRoot = xDoc.DocumentElement; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
XmlNodeList mySearch = xRoot.XPath2SelectNodes("//Object[ends-with(@Name,'_oper')]"); |
||||||
|
|
||||||
|
|
||||||
|
foreach (XmlNode oper in mySearch) |
||||||
|
{ |
||||||
|
var operId = oper.XPath2SelectSingleNode("//Attribute[@Name='indexoper']").Attributes["Value"].Value; |
||||||
|
var operName = oper.XPath2SelectSingleNode("//Attribute[@Name='nameoper']").Attributes["Value"].Value; |
||||||
|
|
||||||
|
Itemlist.Items.Add($"{operId} {operName}"); |
||||||
|
|
||||||
|
foreach (XmlNode step in oper.XPath2SelectNodes("//Object[ends-with(@Name,'_step')]")) |
||||||
|
{ |
||||||
|
var stepNum = step.XPath2SelectSingleNode("//Attribute[@Name='numstep']").Attributes["Value"].Value; |
||||||
|
var stepName = step.XPath2SelectSingleNode("//Attribute[@Name='name']").Attributes["Value"].Value; |
||||||
|
|
||||||
|
Itemlist.Items.Add($" {stepNum}. {stepName}"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,88 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<Project ToolsVersion="15.0" 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>{95FB88A3-2BFD-49AD-B6DB-39E402A47F75}</ProjectGuid> |
||||||
|
<OutputType>WinExe</OutputType> |
||||||
|
<RootNamespace>Vlimport</RootNamespace> |
||||||
|
<AssemblyName>Vlimport</AssemblyName> |
||||||
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> |
||||||
|
<FileAlignment>512</FileAlignment> |
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
||||||
|
</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.Numerics" /> |
||||||
|
<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.Net.Http" /> |
||||||
|
<Reference Include="System.Windows.Forms" /> |
||||||
|
<Reference Include="System.Xml" /> |
||||||
|
<Reference Include="XPath2, Version=1.0.6.0, Culture=neutral, PublicKeyToken=463c6d7fb740c7e5, processorArchitecture=MSIL"> |
||||||
|
<HintPath>..\packages\XPath2.1.0.6\lib\net40\XPath2.dll</HintPath> |
||||||
|
</Reference> |
||||||
|
</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" /> |
||||||
|
<Compile Include="Transporter.cs" /> |
||||||
|
<EmbeddedResource Include="Form1.resx"> |
||||||
|
<DependentUpon>Form1.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="packages.config" /> |
||||||
|
<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> |
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||||
|
</Project> |
@ -0,0 +1,4 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<packages> |
||||||
|
<package id="XPath2" version="1.0.6" targetFramework="net461" /> |
||||||
|
</packages> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue