Init projects
This commit is contained in:
commit
08148c54a6
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.271
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TmatrixSDK_OID4", "TmatrixCodeGenerator\TmatrixSDK_OID4.csproj", "{657EF1B5-592E-4D99-B2D6-E2A1BDAD6DEA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{657EF1B5-592E-4D99-B2D6-E2A1BDAD6DEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{657EF1B5-592E-4D99-B2D6-E2A1BDAD6DEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{657EF1B5-592E-4D99-B2D6-E2A1BDAD6DEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{657EF1B5-592E-4D99-B2D6-E2A1BDAD6DEA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {5028BF6F-9903-4913-9F09-180553216263}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,390 @@
|
|||
namespace TmatrixCodeGenerator
|
||||
{
|
||||
partial class GenerateCode_Form
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.Exit_button = new System.Windows.Forms.Button();
|
||||
this.Generate_button = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.BGWithImage_DPI_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.BGWithImage_Type_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.BGWOVImage_DPI_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.BGWOVImage_Type_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.VImage_DPI_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.VImage_Type_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.BGWithVImage_DPI_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.BGWithVImage_Type_comboBox = new System.Windows.Forms.ComboBox();
|
||||
this.BGWithImage_checkBox = new System.Windows.Forms.CheckBox();
|
||||
this.BGWOVImage_checkBox = new System.Windows.Forms.CheckBox();
|
||||
this.VImage_checkBox = new System.Windows.Forms.CheckBox();
|
||||
this.BGWithVImage_checkBox = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// Exit_button
|
||||
//
|
||||
this.Exit_button.Location = new System.Drawing.Point(540, 203);
|
||||
this.Exit_button.Name = "Exit_button";
|
||||
this.Exit_button.Size = new System.Drawing.Size(86, 33);
|
||||
this.Exit_button.TabIndex = 6;
|
||||
this.Exit_button.Text = "Exit";
|
||||
this.Exit_button.UseVisualStyleBackColor = true;
|
||||
this.Exit_button.Click += new System.EventHandler(this.Exit_button_Click);
|
||||
//
|
||||
// Generate_button
|
||||
//
|
||||
this.Generate_button.Location = new System.Drawing.Point(448, 203);
|
||||
this.Generate_button.Name = "Generate_button";
|
||||
this.Generate_button.Size = new System.Drawing.Size(86, 33);
|
||||
this.Generate_button.TabIndex = 5;
|
||||
this.Generate_button.Text = "Generate";
|
||||
this.Generate_button.UseVisualStyleBackColor = true;
|
||||
this.Generate_button.Click += new System.EventHandler(this.Generate_button_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.label7);
|
||||
this.groupBox1.Controls.Add(this.label8);
|
||||
this.groupBox1.Controls.Add(this.BGWithImage_DPI_comboBox);
|
||||
this.groupBox1.Controls.Add(this.BGWithImage_Type_comboBox);
|
||||
this.groupBox1.Controls.Add(this.label5);
|
||||
this.groupBox1.Controls.Add(this.label6);
|
||||
this.groupBox1.Controls.Add(this.BGWOVImage_DPI_comboBox);
|
||||
this.groupBox1.Controls.Add(this.BGWOVImage_Type_comboBox);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.VImage_DPI_comboBox);
|
||||
this.groupBox1.Controls.Add(this.VImage_Type_comboBox);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.BGWithVImage_DPI_comboBox);
|
||||
this.groupBox1.Controls.Add(this.BGWithVImage_Type_comboBox);
|
||||
this.groupBox1.Controls.Add(this.BGWithImage_checkBox);
|
||||
this.groupBox1.Controls.Add(this.BGWOVImage_checkBox);
|
||||
this.groupBox1.Controls.Add(this.VImage_checkBox);
|
||||
this.groupBox1.Controls.Add(this.BGWithVImage_checkBox);
|
||||
this.groupBox1.Location = new System.Drawing.Point(25, 12);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(601, 180);
|
||||
this.groupBox1.TabIndex = 4;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Code File Type";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(469, 140);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(37, 20);
|
||||
this.label7.TabIndex = 19;
|
||||
this.label7.Text = "DPI:";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(339, 140);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(49, 20);
|
||||
this.label8.TabIndex = 18;
|
||||
this.label8.Text = "Type:";
|
||||
//
|
||||
// BGWithImage_DPI_comboBox
|
||||
//
|
||||
this.BGWithImage_DPI_comboBox.Enabled = false;
|
||||
this.BGWithImage_DPI_comboBox.FormattingEnabled = true;
|
||||
this.BGWithImage_DPI_comboBox.Items.AddRange(new object[] {
|
||||
"600",
|
||||
"1200"});
|
||||
this.BGWithImage_DPI_comboBox.Location = new System.Drawing.Point(511, 137);
|
||||
this.BGWithImage_DPI_comboBox.Name = "BGWithImage_DPI_comboBox";
|
||||
this.BGWithImage_DPI_comboBox.Size = new System.Drawing.Size(68, 28);
|
||||
this.BGWithImage_DPI_comboBox.TabIndex = 17;
|
||||
this.BGWithImage_DPI_comboBox.Text = "1200";
|
||||
this.BGWithImage_DPI_comboBox.SelectedIndexChanged += new System.EventHandler(this.BGWithImage_DPI_comboBox_SelectedIndexChanged);
|
||||
//
|
||||
// BGWithImage_Type_comboBox
|
||||
//
|
||||
this.BGWithImage_Type_comboBox.Enabled = false;
|
||||
this.BGWithImage_Type_comboBox.FormattingEnabled = true;
|
||||
this.BGWithImage_Type_comboBox.Items.AddRange(new object[] {
|
||||
"2x2",
|
||||
"3x3",
|
||||
"4x4"});
|
||||
this.BGWithImage_Type_comboBox.Location = new System.Drawing.Point(394, 137);
|
||||
this.BGWithImage_Type_comboBox.Name = "BGWithImage_Type_comboBox";
|
||||
this.BGWithImage_Type_comboBox.Size = new System.Drawing.Size(55, 28);
|
||||
this.BGWithImage_Type_comboBox.TabIndex = 16;
|
||||
this.BGWithImage_Type_comboBox.Text = "3x3";
|
||||
this.BGWithImage_Type_comboBox.SelectedIndexChanged += new System.EventHandler(this.BGWithImage_Type_comboBox_SelectedIndexChanged);
|
||||
this.BGWithImage_Type_comboBox.TextChanged += new System.EventHandler(this.BGWithImage_Type_comboBox_TextChanged);
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(469, 105);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(37, 20);
|
||||
this.label5.TabIndex = 15;
|
||||
this.label5.Text = "DPI:";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(339, 105);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(49, 20);
|
||||
this.label6.TabIndex = 14;
|
||||
this.label6.Text = "Type:";
|
||||
//
|
||||
// BGWOVImage_DPI_comboBox
|
||||
//
|
||||
this.BGWOVImage_DPI_comboBox.Enabled = false;
|
||||
this.BGWOVImage_DPI_comboBox.FormattingEnabled = true;
|
||||
this.BGWOVImage_DPI_comboBox.Items.AddRange(new object[] {
|
||||
"600",
|
||||
"1200"});
|
||||
this.BGWOVImage_DPI_comboBox.Location = new System.Drawing.Point(511, 102);
|
||||
this.BGWOVImage_DPI_comboBox.Name = "BGWOVImage_DPI_comboBox";
|
||||
this.BGWOVImage_DPI_comboBox.Size = new System.Drawing.Size(68, 28);
|
||||
this.BGWOVImage_DPI_comboBox.TabIndex = 13;
|
||||
this.BGWOVImage_DPI_comboBox.Text = "1200";
|
||||
this.BGWOVImage_DPI_comboBox.SelectedIndexChanged += new System.EventHandler(this.BGWOVImage_DPI_comboBox_SelectedIndexChanged);
|
||||
//
|
||||
// BGWOVImage_Type_comboBox
|
||||
//
|
||||
this.BGWOVImage_Type_comboBox.Enabled = false;
|
||||
this.BGWOVImage_Type_comboBox.FormattingEnabled = true;
|
||||
this.BGWOVImage_Type_comboBox.Items.AddRange(new object[] {
|
||||
"2x2",
|
||||
"3x3",
|
||||
"4x4"});
|
||||
this.BGWOVImage_Type_comboBox.Location = new System.Drawing.Point(394, 102);
|
||||
this.BGWOVImage_Type_comboBox.Name = "BGWOVImage_Type_comboBox";
|
||||
this.BGWOVImage_Type_comboBox.Size = new System.Drawing.Size(55, 28);
|
||||
this.BGWOVImage_Type_comboBox.TabIndex = 12;
|
||||
this.BGWOVImage_Type_comboBox.Text = "3x3";
|
||||
this.BGWOVImage_Type_comboBox.SelectedIndexChanged += new System.EventHandler(this.BGWOVImage_Type_comboBox_SelectedIndexChanged);
|
||||
this.BGWOVImage_Type_comboBox.TextChanged += new System.EventHandler(this.BGWOVImage_Type_comboBox_TextChanged);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(469, 70);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(37, 20);
|
||||
this.label3.TabIndex = 11;
|
||||
this.label3.Text = "DPI:";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(339, 70);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(49, 20);
|
||||
this.label4.TabIndex = 10;
|
||||
this.label4.Text = "Type:";
|
||||
//
|
||||
// VImage_DPI_comboBox
|
||||
//
|
||||
this.VImage_DPI_comboBox.Enabled = false;
|
||||
this.VImage_DPI_comboBox.FormattingEnabled = true;
|
||||
this.VImage_DPI_comboBox.Items.AddRange(new object[] {
|
||||
"600",
|
||||
"1200"});
|
||||
this.VImage_DPI_comboBox.Location = new System.Drawing.Point(511, 67);
|
||||
this.VImage_DPI_comboBox.Name = "VImage_DPI_comboBox";
|
||||
this.VImage_DPI_comboBox.Size = new System.Drawing.Size(68, 28);
|
||||
this.VImage_DPI_comboBox.TabIndex = 9;
|
||||
this.VImage_DPI_comboBox.Text = "1200";
|
||||
this.VImage_DPI_comboBox.SelectedIndexChanged += new System.EventHandler(this.VImage_DPI_comboBox_SelectedIndexChanged);
|
||||
//
|
||||
// VImage_Type_comboBox
|
||||
//
|
||||
this.VImage_Type_comboBox.Enabled = false;
|
||||
this.VImage_Type_comboBox.FormattingEnabled = true;
|
||||
this.VImage_Type_comboBox.Items.AddRange(new object[] {
|
||||
"2x2",
|
||||
"3x3",
|
||||
"4x4"});
|
||||
this.VImage_Type_comboBox.Location = new System.Drawing.Point(394, 67);
|
||||
this.VImage_Type_comboBox.Name = "VImage_Type_comboBox";
|
||||
this.VImage_Type_comboBox.Size = new System.Drawing.Size(55, 28);
|
||||
this.VImage_Type_comboBox.TabIndex = 8;
|
||||
this.VImage_Type_comboBox.Text = "3x3";
|
||||
this.VImage_Type_comboBox.SelectedIndexChanged += new System.EventHandler(this.VImage_Type_comboBox_SelectedIndexChanged);
|
||||
this.VImage_Type_comboBox.TextChanged += new System.EventHandler(this.VImage_Type_comboBox_TextChanged);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(469, 35);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(37, 20);
|
||||
this.label2.TabIndex = 7;
|
||||
this.label2.Text = "DPI:";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(339, 35);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(49, 20);
|
||||
this.label1.TabIndex = 6;
|
||||
this.label1.Text = "Type:";
|
||||
//
|
||||
// BGWithVImage_DPI_comboBox
|
||||
//
|
||||
this.BGWithVImage_DPI_comboBox.FormattingEnabled = true;
|
||||
this.BGWithVImage_DPI_comboBox.Items.AddRange(new object[] {
|
||||
"600",
|
||||
"1200"});
|
||||
this.BGWithVImage_DPI_comboBox.Location = new System.Drawing.Point(511, 32);
|
||||
this.BGWithVImage_DPI_comboBox.Name = "BGWithVImage_DPI_comboBox";
|
||||
this.BGWithVImage_DPI_comboBox.Size = new System.Drawing.Size(68, 28);
|
||||
this.BGWithVImage_DPI_comboBox.TabIndex = 5;
|
||||
this.BGWithVImage_DPI_comboBox.Text = "1200";
|
||||
this.BGWithVImage_DPI_comboBox.SelectedIndexChanged += new System.EventHandler(this.BGWithVImage_DPI_comboBox_SelectedIndexChanged);
|
||||
//
|
||||
// BGWithVImage_Type_comboBox
|
||||
//
|
||||
this.BGWithVImage_Type_comboBox.FormattingEnabled = true;
|
||||
this.BGWithVImage_Type_comboBox.Items.AddRange(new object[] {
|
||||
"2x2",
|
||||
"3x3",
|
||||
"4x4"});
|
||||
this.BGWithVImage_Type_comboBox.Location = new System.Drawing.Point(394, 32);
|
||||
this.BGWithVImage_Type_comboBox.Name = "BGWithVImage_Type_comboBox";
|
||||
this.BGWithVImage_Type_comboBox.Size = new System.Drawing.Size(55, 28);
|
||||
this.BGWithVImage_Type_comboBox.TabIndex = 4;
|
||||
this.BGWithVImage_Type_comboBox.Text = "3x3";
|
||||
this.BGWithVImage_Type_comboBox.SelectedIndexChanged += new System.EventHandler(this.BGWithVImage_Type_comboBox_SelectedIndexChanged);
|
||||
this.BGWithVImage_Type_comboBox.TextChanged += new System.EventHandler(this.BGWithVImage_Type_comboBox_TextChanged);
|
||||
//
|
||||
// BGWithImage_checkBox
|
||||
//
|
||||
this.BGWithImage_checkBox.AutoSize = true;
|
||||
this.BGWithImage_checkBox.Location = new System.Drawing.Point(20, 140);
|
||||
this.BGWithImage_checkBox.Name = "BGWithImage_checkBox";
|
||||
this.BGWithImage_checkBox.Size = new System.Drawing.Size(202, 24);
|
||||
this.BGWithImage_checkBox.TabIndex = 3;
|
||||
this.BGWithImage_checkBox.Text = "Background with Image";
|
||||
this.BGWithImage_checkBox.UseVisualStyleBackColor = true;
|
||||
this.BGWithImage_checkBox.CheckedChanged += new System.EventHandler(this.BGWithImage_checkBox_CheckedChanged);
|
||||
//
|
||||
// BGWOVImage_checkBox
|
||||
//
|
||||
this.BGWOVImage_checkBox.AutoSize = true;
|
||||
this.BGWOVImage_checkBox.Location = new System.Drawing.Point(20, 105);
|
||||
this.BGWOVImage_checkBox.Name = "BGWOVImage_checkBox";
|
||||
this.BGWOVImage_checkBox.Size = new System.Drawing.Size(280, 24);
|
||||
this.BGWOVImage_checkBox.TabIndex = 2;
|
||||
this.BGWOVImage_checkBox.Text = "Background without Vector Image";
|
||||
this.BGWOVImage_checkBox.UseVisualStyleBackColor = true;
|
||||
this.BGWOVImage_checkBox.CheckedChanged += new System.EventHandler(this.BGWOVImage_checkBox_CheckedChanged);
|
||||
//
|
||||
// VImage_checkBox
|
||||
//
|
||||
this.VImage_checkBox.AutoSize = true;
|
||||
this.VImage_checkBox.Location = new System.Drawing.Point(20, 70);
|
||||
this.VImage_checkBox.Name = "VImage_checkBox";
|
||||
this.VImage_checkBox.Size = new System.Drawing.Size(129, 24);
|
||||
this.VImage_checkBox.TabIndex = 1;
|
||||
this.VImage_checkBox.Text = "Vector Image";
|
||||
this.VImage_checkBox.UseVisualStyleBackColor = true;
|
||||
this.VImage_checkBox.CheckedChanged += new System.EventHandler(this.VImage_checkBox_CheckedChanged);
|
||||
//
|
||||
// BGWithVImage_checkBox
|
||||
//
|
||||
this.BGWithVImage_checkBox.AutoSize = true;
|
||||
this.BGWithVImage_checkBox.Checked = true;
|
||||
this.BGWithVImage_checkBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.BGWithVImage_checkBox.Location = new System.Drawing.Point(20, 35);
|
||||
this.BGWithVImage_checkBox.Name = "BGWithVImage_checkBox";
|
||||
this.BGWithVImage_checkBox.Size = new System.Drawing.Size(255, 24);
|
||||
this.BGWithVImage_checkBox.TabIndex = 0;
|
||||
this.BGWithVImage_checkBox.Text = "Background with Vector Image";
|
||||
this.BGWithVImage_checkBox.UseVisualStyleBackColor = true;
|
||||
this.BGWithVImage_checkBox.CheckedChanged += new System.EventHandler(this.BGWithVImage_checkBox_CheckedChanged);
|
||||
//
|
||||
// GenerateCode_Form
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(650, 248);
|
||||
this.Controls.Add(this.Exit_button);
|
||||
this.Controls.Add(this.Generate_button);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.ForeColor = System.Drawing.Color.Navy;
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "GenerateCode_Form";
|
||||
this.Text = "Generate Tmatrix Code";
|
||||
this.Load += new System.EventHandler(this.GenerateCode_Form_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button Exit_button;
|
||||
private System.Windows.Forms.Button Generate_button;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.CheckBox BGWOVImage_checkBox;
|
||||
private System.Windows.Forms.CheckBox VImage_checkBox;
|
||||
private System.Windows.Forms.CheckBox BGWithVImage_checkBox;
|
||||
private System.Windows.Forms.CheckBox BGWithImage_checkBox;
|
||||
private System.Windows.Forms.ComboBox BGWithVImage_Type_comboBox;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.ComboBox BGWithImage_DPI_comboBox;
|
||||
private System.Windows.Forms.ComboBox BGWithImage_Type_comboBox;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.ComboBox BGWOVImage_DPI_comboBox;
|
||||
private System.Windows.Forms.ComboBox BGWOVImage_Type_comboBox;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.ComboBox VImage_DPI_comboBox;
|
||||
private System.Windows.Forms.ComboBox VImage_Type_comboBox;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.ComboBox BGWithVImage_DPI_comboBox;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,332 @@
|
|||
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 TmatrixCodeGenerator
|
||||
{
|
||||
public partial class GenerateCode_Form : Form
|
||||
{
|
||||
string[] gsPreDataType = new string[4];
|
||||
|
||||
public GenerateCode_Form()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Generate_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BGWithVImage_checkBox.Checked) GlobalClass.gbGenerateBGWithVImage = true;
|
||||
else GlobalClass.gbGenerateBGWithVImage = false;
|
||||
if (VImage_checkBox.Checked) GlobalClass.gbGenerateVImage = true;
|
||||
else GlobalClass.gbGenerateVImage = false;
|
||||
if (BGWOVImage_checkBox.Checked) GlobalClass.gbGenerateBGWithoutVImage = true;
|
||||
else GlobalClass.gbGenerateBGWithoutVImage = false;
|
||||
if (BGWithImage_checkBox.Checked) GlobalClass.gbGenerateBGWithImage = true;
|
||||
else GlobalClass.gbGenerateBGWithImage = false;
|
||||
GlobalClass.gbGenPageSet = true;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void GenerateCode_Form_Load(object sender, EventArgs e)
|
||||
{
|
||||
GlobalClass.gbGenPageSet = false;
|
||||
int i;
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
GlobalClass.gPointType[i] = 1;
|
||||
GlobalClass.gPointDPI[i] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
private void Exit_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalClass.gbGenPageSet = false;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void BGWithVImage_checkBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (BGWithVImage_checkBox.Checked == true)
|
||||
{
|
||||
BGWithVImage_Type_comboBox.Enabled = true;
|
||||
BGWithVImage_DPI_comboBox.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
BGWithVImage_Type_comboBox.Enabled = false;
|
||||
BGWithVImage_DPI_comboBox.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void VImage_checkBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (VImage_checkBox.Checked == true)
|
||||
{
|
||||
VImage_Type_comboBox.Enabled = true;
|
||||
VImage_DPI_comboBox.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
VImage_Type_comboBox.Enabled = false;
|
||||
VImage_DPI_comboBox.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWOVImage_checkBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (BGWOVImage_checkBox.Checked == true)
|
||||
{
|
||||
BGWOVImage_Type_comboBox.Enabled = true;
|
||||
BGWOVImage_DPI_comboBox.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
BGWOVImage_Type_comboBox.Enabled = false;
|
||||
BGWOVImage_DPI_comboBox.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWithImage_checkBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (BGWithImage_checkBox.Checked == true)
|
||||
{
|
||||
BGWithImage_Type_comboBox.Enabled = true;
|
||||
BGWithImage_DPI_comboBox.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
BGWithImage_Type_comboBox.Enabled = false;
|
||||
BGWithImage_DPI_comboBox.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWithVImage_Type_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWithVImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[0] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[0] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[0] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void VImage_Type_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (VImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[1] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[1] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[1] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWOVImage_Type_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWOVImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[2] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[2] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[2] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWithImage_Type_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWithImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[3] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[3] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[3] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWithVImage_DPI_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWithVImage_DPI_comboBox.Text)
|
||||
{
|
||||
case "600":
|
||||
GlobalClass.gPointDPI[0] = 0;
|
||||
gsPreDataType[0] = BGWithVImage_Type_comboBox.Text;
|
||||
BGWithVImage_Type_comboBox.Text = "2x2";
|
||||
BGWithVImage_Type_comboBox.Enabled = false;
|
||||
break;
|
||||
case "1200":
|
||||
GlobalClass.gPointDPI[0] = 1;
|
||||
BGWithVImage_Type_comboBox.Enabled = true;
|
||||
BGWithVImage_Type_comboBox.Text = gsPreDataType[0];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void VImage_DPI_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (VImage_DPI_comboBox.Text)
|
||||
{
|
||||
case "600":
|
||||
GlobalClass.gPointDPI[1] = 0;
|
||||
gsPreDataType[1] = VImage_Type_comboBox.Text;
|
||||
VImage_Type_comboBox.Text = "2x2";
|
||||
VImage_Type_comboBox.Enabled = false;
|
||||
break;
|
||||
case "1200":
|
||||
GlobalClass.gPointDPI[1] = 1;
|
||||
VImage_Type_comboBox.Enabled = true;
|
||||
VImage_Type_comboBox.Text = gsPreDataType[1];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWOVImage_DPI_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWOVImage_DPI_comboBox.Text)
|
||||
{
|
||||
case "600":
|
||||
GlobalClass.gPointDPI[2] = 0;
|
||||
gsPreDataType[2] = BGWOVImage_Type_comboBox.Text;
|
||||
BGWOVImage_Type_comboBox.Text = "2x2";
|
||||
BGWOVImage_Type_comboBox.Enabled = false;
|
||||
break;
|
||||
case "1200":
|
||||
GlobalClass.gPointDPI[2] = 1;
|
||||
BGWOVImage_Type_comboBox.Enabled = true;
|
||||
BGWOVImage_Type_comboBox.Text = gsPreDataType[2];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWithImage_DPI_comboBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWithImage_DPI_comboBox.Text)
|
||||
{
|
||||
case "600":
|
||||
GlobalClass.gPointDPI[3] = 0;
|
||||
gsPreDataType[3] = BGWithImage_Type_comboBox.Text;
|
||||
BGWithImage_Type_comboBox.Text = "2x2";
|
||||
BGWithImage_Type_comboBox.Enabled = false;
|
||||
break;
|
||||
case "1200":
|
||||
GlobalClass.gPointDPI[3] = 1;
|
||||
BGWithImage_Type_comboBox.Enabled = true;
|
||||
BGWithImage_Type_comboBox.Text = gsPreDataType[3];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWithVImage_Type_comboBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWithVImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[0] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[0] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[0] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void VImage_Type_comboBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (VImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[1] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[1] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[1] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWOVImage_Type_comboBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWOVImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[2] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[2] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[2] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void BGWithImage_Type_comboBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
switch (BGWithImage_Type_comboBox.Text)
|
||||
{
|
||||
case "2x2":
|
||||
GlobalClass.gPointType[3] = 0;
|
||||
break;
|
||||
case "3x3":
|
||||
GlobalClass.gPointType[3] = 1;
|
||||
break;
|
||||
case "4x4":
|
||||
GlobalClass.gPointType[3] = 2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,120 @@
|
|||
<?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>
|
||||
</root>
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace TmatrixCodeGenerator
|
||||
{
|
||||
class GlobalClass
|
||||
{
|
||||
public static bool gbGenerateBGWithVImage = false;
|
||||
public static bool gbGenerateVImage = false;
|
||||
public static bool gbGenerateBGWithoutVImage = false;
|
||||
public static bool gbGenerateBGWithImage = false;
|
||||
public static bool gbGenPageSet = false;
|
||||
public static int[] gPointType = new int[4];
|
||||
public static int[] gPointDPI = new int[4];
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
Binary file not shown.
After Width: | Height: | Size: 108 KiB |
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TmatrixCodeGenerator
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 應用程式的主要進入點。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Tmatrix_Form());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 組件的一般資訊是由下列的屬性集控制。
|
||||
// 變更這些屬性的值即可修改組件的相關
|
||||
// 資訊。
|
||||
[assembly: AssemblyTitle("TmatrixCodeGenerator")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("TmatrixCodeGenerator")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 將 ComVisible 設定為 false 會使得這個組件中的類型
|
||||
// 對 COM 元件而言為不可見。如果您需要從 COM 存取這個組件中
|
||||
// 的類型,請在該類型上將 ComVisible 屬性設定為 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
|
||||
[assembly: Guid("c8cbd32e-39a9-4fa7-a4f1-04003a5be8c2")]
|
||||
|
||||
// 組件的版本資訊是由下列四項值構成:
|
||||
//
|
||||
// 主要版本
|
||||
// 次要版本
|
||||
// 組建編號
|
||||
// 修訂編號
|
||||
//
|
||||
// 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
|
||||
// 指定為預設值:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -0,0 +1,93 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 這段程式碼是由工具產生的。
|
||||
// 執行階段版本:4.0.30319.42000
|
||||
//
|
||||
// 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
|
||||
// 變更將會遺失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace TmatrixCodeGenerator.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <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 (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TmatrixCodeGenerator.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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Printer1 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Printer1", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Printer2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Printer2", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查詢類型 System.Drawing.Bitmap 的當地語系化資源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Printer3 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Printer3", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,130 @@
|
|||
<?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>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="Printer1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Printer1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Printer2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Printer2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Printer3" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Printer3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
|
@ -0,0 +1,26 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 這段程式碼是由工具產生的。
|
||||
// 執行階段版本:4.0.30319.42000
|
||||
//
|
||||
// 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
|
||||
// 變更將會遺失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace TmatrixCodeGenerator.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
|
@ -0,0 +1,102 @@
|
|||
// Generated by .NET Reflector from E:\NetEase\轨迹笔\Tmatrix SDK OID4 V2.1.2\TmatrixCodeGenerator\TmatrixCodeGenerator\bin\Release\TmatrixLibrary_OID4.dll
|
||||
namespace OIDModule.Generator
|
||||
{
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
internal enum OIDBeginBuildState
|
||||
{
|
||||
eBBState_OK,
|
||||
eBBState_ImageFileNotExist,
|
||||
eBBState_FailToOpenImageFile,
|
||||
eBBState_Unknown
|
||||
}
|
||||
internal enum OIDPrintPointType
|
||||
{
|
||||
eOID_PrintPointType_2x2,
|
||||
eOID_PrintPointType_3x3,
|
||||
eOID_PrintPointType_4x4
|
||||
}
|
||||
internal enum OIDPublishImageDPIType
|
||||
{
|
||||
eOID_PublishImageDPI_600,
|
||||
eOID_PublishImageDPI_1200
|
||||
}
|
||||
internal enum OIDPublishImageType
|
||||
{
|
||||
eOID_PIT_Publish_Image,
|
||||
eOID_PIT_Vertor_Image,
|
||||
eOID_PIT_BG_Vertor_Image,
|
||||
eOID_PIT_Publish_BG_Image
|
||||
}
|
||||
internal enum OIDPublishObjectType
|
||||
{
|
||||
eOID_OT_ElementCode,
|
||||
eOID_OT_PositionCode
|
||||
}
|
||||
|
||||
internal class OIDPublishImageGenerator
|
||||
{
|
||||
public bool AddObjectInfo(int nPageIndex, ulong uiObjectIndex, uint[] arPointX, uint[] arPointY, int nPointsCount, int nZOrder, int nObjectType)
|
||||
{
|
||||
return OID_PIG_AddObjectInfo(nPageIndex, uiObjectIndex, arPointX, arPointY, nPointsCount, nZOrder, nObjectType);
|
||||
}
|
||||
|
||||
public int BeginBuildPublishImage(char[] szBGImage, bool bExportPDFImage, int nExportPDFImageDPI)
|
||||
{
|
||||
return OID_PIG_BeginBuildPublishImage(szBGImage, bExportPDFImage, nExportPDFImageDPI);
|
||||
}
|
||||
|
||||
public int BeginBuildPublishImageByInfo(double dbCMWidth, double dbCMHeight)
|
||||
{
|
||||
return OID_PIG_BeginBuildPublishImageByInfo(dbCMWidth, dbCMHeight);
|
||||
}
|
||||
|
||||
public bool BuildPublishImage(char[] szOutputFolderPath, bool bPrintIdleCode, bool bSplitBigImage, bool bMergeSplittedImages, int nPublishImageDPIType, int nPrintPointType, int nPublishImageType)
|
||||
{
|
||||
return OID_PIG_BuildPublishImage(szOutputFolderPath, bPrintIdleCode, bSplitBigImage, bMergeSplittedImages, nPublishImageDPIType, nPrintPointType, nPublishImageType);
|
||||
}
|
||||
|
||||
public void EndBuildPublishImage()
|
||||
{
|
||||
OID_PIG_EndBuildPublishImage();
|
||||
}
|
||||
|
||||
public bool Initialize()
|
||||
{
|
||||
return OID_PIG_Initialize();
|
||||
}
|
||||
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall)]
|
||||
private static extern bool OID_PIG_AddObjectInfo(int nPageIndex, ulong uiObjectIndex, uint[] arPointX, uint[] arPointY, int nPointsCount, int nZOrder, int nObjectType);
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Unicode)]
|
||||
private static extern int OID_PIG_BeginBuildPublishImage(char[] szBGImage, bool bExportPDFImage, int nExportPDFImageDPI);
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Unicode)]
|
||||
private static extern int OID_PIG_BeginBuildPublishImageByInfo(double dbCMWidth, double dbCMHeight);
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Unicode)]
|
||||
private static extern bool OID_PIG_BuildPublishImage(char[] szOutputFolderPath, bool bPrintIdleCode, bool bSplitBigImage, bool bMergeSplittedImages, int nPublishImageDPIType, int nPrintPointType, int nPublishImageType);
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall)]
|
||||
private static extern void OID_PIG_EndBuildPublishImage();
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall)]
|
||||
private static extern bool OID_PIG_Initialize();
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall)]
|
||||
private static extern bool OID_PIG_SetPublishPages(int[] arPageNumbers, int nPageCount);
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall)]
|
||||
private static extern bool OID_PIG_SetStartPosition(int nPageIndex, int nXStart, int nYStart);
|
||||
[DllImport(@".\OIDPublishImageGenerator\OIDPublishImageGenerator.dll", CallingConvention=CallingConvention.StdCall)]
|
||||
private static extern void OID_PIG_Uninitialize();
|
||||
public bool SetPublishPages(int[] arPageNumbers, int nPageCount)
|
||||
{
|
||||
return OID_PIG_SetPublishPages(arPageNumbers, nPageCount);
|
||||
}
|
||||
|
||||
public bool SetStartPosition(int nPageIndex, int nXStart, int nYStart)
|
||||
{
|
||||
return OID_PIG_SetStartPosition(nPageIndex, nXStart, nYStart);
|
||||
}
|
||||
|
||||
public void Uninitialize()
|
||||
{
|
||||
OID_PIG_Uninitialize();
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,170 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{657EF1B5-592E-4D99-B2D6-E2A1BDAD6DEA}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>TmatrixCodeGenerator</RootNamespace>
|
||||
<AssemblyName>TmatrixCodeGenerator</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</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>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>TmatrixCodeGenerator.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="adodb, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Common\adodb.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="AxInterop.AcroPDFLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>bin\FinalDLL\AxInterop.AcroPDFLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DocumentTools">
|
||||
<HintPath>bin\FinalDLL\DocumentTools.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DrawToolsLib">
|
||||
<HintPath>bin\FinalDLL\DrawToolsLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="itextsharp">
|
||||
<HintPath>bin\FinalDLL\itextsharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.DirectoryServices" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="GenerateCode_Form.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="GenerateCode_Form.designer.cs">
|
||||
<DependentUpon>GenerateCode_Form.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="GlobalClass.cs" />
|
||||
<Compile Include="TmatrixLibrary\OIDPublishImageGenerator.cs" />
|
||||
<Compile Include="TmatrixLibrary\TmatrixClass.cs" />
|
||||
<Compile Include="Tmatrix_Form.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Tmatrix_Form.Designer.cs">
|
||||
<DependentUpon>Tmatrix_Form.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="GenerateCode_Form.resx">
|
||||
<DependentUpon>GenerateCode_Form.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>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Tmatrix_Form.resx">
|
||||
<DependentUpon>Tmatrix_Form.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="app.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>
|
||||
<WCFMetadata Include="Service References\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<COMReference Include="Acrobat">
|
||||
<Guid>{E64169B3-3592-47D2-816E-602C5C13F328}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>1</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="AcroPDFLib">
|
||||
<Guid>{05BFD3F1-6319-4F30-B752-C7A22889BCC4}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="AFORMAUTLib">
|
||||
<Guid>{7CD06992-50AA-11D1-B8F0-00A0C9259304}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="stdole">
|
||||
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
|
||||
<VersionMajor>2</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>primary</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Printer1.png" />
|
||||
<Content Include="Printer2.png" />
|
||||
<Content Include="Printer3.png" />
|
||||
<Content Include="TmatrixCodeGenerator.ico" />
|
||||
</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,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
|
@ -0,0 +1,590 @@
|
|||
namespace TmatrixCodeGenerator
|
||||
{
|
||||
partial class Tmatrix_Form
|
||||
{
|
||||
/// <summary>
|
||||
/// 設計工具所需的變數。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清除任何使用中的資源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果應該處置 Managed 資源則為 true,否則為 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form 設計工具產生的程式碼
|
||||
|
||||
/// <summary>
|
||||
/// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器
|
||||
/// 修改這個方法的內容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Tmatrix_Form));
|
||||
this.SelectTmatrixKey_button = new System.Windows.Forms.Button();
|
||||
this.SelectPDF_button = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.SID_textBox = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.OID_textBox = new System.Windows.Forms.TextBox();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.Expiration_textBox = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.PID2_textBox = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.PID1_textBox = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.BID_textBox = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.PDF_groupBox = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.label13 = new System.Windows.Forms.Label();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.GeneratePartialCode_button = new System.Windows.Forms.Button();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.H3_textBox = new System.Windows.Forms.TextBox();
|
||||
this.H2_textBox = new System.Windows.Forms.TextBox();
|
||||
this.H1_textBox = new System.Windows.Forms.TextBox();
|
||||
this.W3_textBox = new System.Windows.Forms.TextBox();
|
||||
this.W2_textBox = new System.Windows.Forms.TextBox();
|
||||
this.W1_textBox = new System.Windows.Forms.TextBox();
|
||||
this.Y3_textBox = new System.Windows.Forms.TextBox();
|
||||
this.Y2_textBox = new System.Windows.Forms.TextBox();
|
||||
this.Y1_textBox = new System.Windows.Forms.TextBox();
|
||||
this.X3_textBox = new System.Windows.Forms.TextBox();
|
||||
this.X2_textBox = new System.Windows.Forms.TextBox();
|
||||
this.X1_textBox = new System.Windows.Forms.TextBox();
|
||||
this.GenerateTmatrixCode_button = new System.Windows.Forms.Button();
|
||||
this.FName_textBox = new System.Windows.Forms.TextBox();
|
||||
this.SPID_textBox = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.Exit_button = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.PDF_groupBox.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// SelectTmatrixKey_button
|
||||
//
|
||||
this.SelectTmatrixKey_button.Location = new System.Drawing.Point(10, 41);
|
||||
this.SelectTmatrixKey_button.Name = "SelectTmatrixKey_button";
|
||||
this.SelectTmatrixKey_button.Size = new System.Drawing.Size(174, 37);
|
||||
this.SelectTmatrixKey_button.TabIndex = 3;
|
||||
this.SelectTmatrixKey_button.Text = "Select Tmatrix Key";
|
||||
this.SelectTmatrixKey_button.UseVisualStyleBackColor = true;
|
||||
this.SelectTmatrixKey_button.Click += new System.EventHandler(this.SelectTmatrixKey_button_Click);
|
||||
//
|
||||
// SelectPDF_button
|
||||
//
|
||||
this.SelectPDF_button.Location = new System.Drawing.Point(17, 41);
|
||||
this.SelectPDF_button.Name = "SelectPDF_button";
|
||||
this.SelectPDF_button.Size = new System.Drawing.Size(146, 37);
|
||||
this.SelectPDF_button.TabIndex = 4;
|
||||
this.SelectPDF_button.Text = "Select PDF File";
|
||||
this.SelectPDF_button.UseVisualStyleBackColor = true;
|
||||
this.SelectPDF_button.Click += new System.EventHandler(this.SelectPDF_button_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.SID_textBox);
|
||||
this.groupBox1.Controls.Add(this.label7);
|
||||
this.groupBox1.Controls.Add(this.OID_textBox);
|
||||
this.groupBox1.Controls.Add(this.label14);
|
||||
this.groupBox1.Controls.Add(this.Expiration_textBox);
|
||||
this.groupBox1.Controls.Add(this.label4);
|
||||
this.groupBox1.Controls.Add(this.PID2_textBox);
|
||||
this.groupBox1.Controls.Add(this.label3);
|
||||
this.groupBox1.Controls.Add(this.PID1_textBox);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.BID_textBox);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Controls.Add(this.SelectTmatrixKey_button);
|
||||
this.groupBox1.Location = new System.Drawing.Point(18, 17);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(683, 158);
|
||||
this.groupBox1.TabIndex = 5;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Tmatrix Key";
|
||||
//
|
||||
// SID_textBox
|
||||
//
|
||||
this.SID_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.SID_textBox.Location = new System.Drawing.Point(293, 47);
|
||||
this.SID_textBox.Name = "SID_textBox";
|
||||
this.SID_textBox.ReadOnly = true;
|
||||
this.SID_textBox.Size = new System.Drawing.Size(55, 29);
|
||||
this.SID_textBox.TabIndex = 19;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(186, 49);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(103, 23);
|
||||
this.label7.TabIndex = 18;
|
||||
this.label7.Text = "Section ID :";
|
||||
//
|
||||
// OID_textBox
|
||||
//
|
||||
this.OID_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.OID_textBox.Location = new System.Drawing.Point(450, 47);
|
||||
this.OID_textBox.Name = "OID_textBox";
|
||||
this.OID_textBox.ReadOnly = true;
|
||||
this.OID_textBox.Size = new System.Drawing.Size(55, 29);
|
||||
this.OID_textBox.TabIndex = 17;
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(356, 49);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(95, 23);
|
||||
this.label14.TabIndex = 16;
|
||||
this.label14.Text = "Owner ID :";
|
||||
//
|
||||
// Expiration_textBox
|
||||
//
|
||||
this.Expiration_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.Expiration_textBox.Location = new System.Drawing.Point(453, 100);
|
||||
this.Expiration_textBox.Name = "Expiration_textBox";
|
||||
this.Expiration_textBox.ReadOnly = true;
|
||||
this.Expiration_textBox.Size = new System.Drawing.Size(135, 29);
|
||||
this.Expiration_textBox.TabIndex = 11;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(349, 102);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(100, 23);
|
||||
this.label4.TabIndex = 10;
|
||||
this.label4.Text = "Expiration :";
|
||||
//
|
||||
// PID2_textBox
|
||||
//
|
||||
this.PID2_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.PID2_textBox.Location = new System.Drawing.Point(264, 100);
|
||||
this.PID2_textBox.Name = "PID2_textBox";
|
||||
this.PID2_textBox.ReadOnly = true;
|
||||
this.PID2_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.PID2_textBox.TabIndex = 9;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(229, 102);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(31, 23);
|
||||
this.label3.TabIndex = 8;
|
||||
this.label3.Text = "To";
|
||||
//
|
||||
// PID1_textBox
|
||||
//
|
||||
this.PID1_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.PID1_textBox.Location = new System.Drawing.Point(155, 100);
|
||||
this.PID1_textBox.Name = "PID1_textBox";
|
||||
this.PID1_textBox.ReadOnly = true;
|
||||
this.PID1_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.PID1_textBox.TabIndex = 7;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(20, 102);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(129, 23);
|
||||
this.label2.TabIndex = 6;
|
||||
this.label2.Text = "Page ID : From";
|
||||
//
|
||||
// BID_textBox
|
||||
//
|
||||
this.BID_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.BID_textBox.Location = new System.Drawing.Point(598, 48);
|
||||
this.BID_textBox.Name = "BID_textBox";
|
||||
this.BID_textBox.ReadOnly = true;
|
||||
this.BID_textBox.Size = new System.Drawing.Size(70, 29);
|
||||
this.BID_textBox.TabIndex = 5;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(508, 50);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(84, 23);
|
||||
this.label1.TabIndex = 4;
|
||||
this.label1.Text = "Book ID :";
|
||||
//
|
||||
// PDF_groupBox
|
||||
//
|
||||
this.PDF_groupBox.Controls.Add(this.groupBox2);
|
||||
this.PDF_groupBox.Controls.Add(this.GenerateTmatrixCode_button);
|
||||
this.PDF_groupBox.Controls.Add(this.FName_textBox);
|
||||
this.PDF_groupBox.Controls.Add(this.SPID_textBox);
|
||||
this.PDF_groupBox.Controls.Add(this.label5);
|
||||
this.PDF_groupBox.Controls.Add(this.SelectPDF_button);
|
||||
this.PDF_groupBox.Enabled = false;
|
||||
this.PDF_groupBox.Location = new System.Drawing.Point(18, 189);
|
||||
this.PDF_groupBox.Name = "PDF_groupBox";
|
||||
this.PDF_groupBox.Size = new System.Drawing.Size(683, 275);
|
||||
this.PDF_groupBox.TabIndex = 6;
|
||||
this.PDF_groupBox.TabStop = false;
|
||||
this.PDF_groupBox.Text = "Select PDF to Generate Tmatrix Code";
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.label13);
|
||||
this.groupBox2.Controls.Add(this.label12);
|
||||
this.groupBox2.Controls.Add(this.label11);
|
||||
this.groupBox2.Controls.Add(this.GeneratePartialCode_button);
|
||||
this.groupBox2.Controls.Add(this.label10);
|
||||
this.groupBox2.Controls.Add(this.label9);
|
||||
this.groupBox2.Controls.Add(this.label8);
|
||||
this.groupBox2.Controls.Add(this.label6);
|
||||
this.groupBox2.Controls.Add(this.H3_textBox);
|
||||
this.groupBox2.Controls.Add(this.H2_textBox);
|
||||
this.groupBox2.Controls.Add(this.H1_textBox);
|
||||
this.groupBox2.Controls.Add(this.W3_textBox);
|
||||
this.groupBox2.Controls.Add(this.W2_textBox);
|
||||
this.groupBox2.Controls.Add(this.W1_textBox);
|
||||
this.groupBox2.Controls.Add(this.Y3_textBox);
|
||||
this.groupBox2.Controls.Add(this.Y2_textBox);
|
||||
this.groupBox2.Controls.Add(this.Y1_textBox);
|
||||
this.groupBox2.Controls.Add(this.X3_textBox);
|
||||
this.groupBox2.Controls.Add(this.X2_textBox);
|
||||
this.groupBox2.Controls.Add(this.X1_textBox);
|
||||
this.groupBox2.Location = new System.Drawing.Point(17, 85);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(602, 174);
|
||||
this.groupBox2.TabIndex = 13;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Partial Area Code";
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(3, 134);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(30, 23);
|
||||
this.label13.TabIndex = 21;
|
||||
this.label13.Text = "P3";
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(3, 100);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(30, 23);
|
||||
this.label12.TabIndex = 20;
|
||||
this.label12.Text = "P2";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(3, 65);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(30, 23);
|
||||
this.label11.TabIndex = 19;
|
||||
this.label11.Text = "P1";
|
||||
//
|
||||
// GeneratePartialCode_button
|
||||
//
|
||||
this.GeneratePartialCode_button.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.GeneratePartialCode_button.Location = new System.Drawing.Point(395, 88);
|
||||
this.GeneratePartialCode_button.Name = "GeneratePartialCode_button";
|
||||
this.GeneratePartialCode_button.Size = new System.Drawing.Size(187, 72);
|
||||
this.GeneratePartialCode_button.TabIndex = 18;
|
||||
this.GeneratePartialCode_button.Text = "Generate Partial Code";
|
||||
this.GeneratePartialCode_button.UseVisualStyleBackColor = true;
|
||||
this.GeneratePartialCode_button.Click += new System.EventHandler(this.GeneratePartialCode_button_Click);
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(306, 30);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(65, 23);
|
||||
this.label10.TabIndex = 15;
|
||||
this.label10.Text = "Height";
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(222, 31);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(59, 23);
|
||||
this.label9.TabIndex = 14;
|
||||
this.label9.Text = "Width";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(126, 30);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(69, 23);
|
||||
this.label8.TabIndex = 13;
|
||||
this.label8.Text = "Y (Top)";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(34, 30);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(69, 23);
|
||||
this.label6.TabIndex = 12;
|
||||
this.label6.Text = "X (Left)";
|
||||
//
|
||||
// H3_textBox
|
||||
//
|
||||
this.H3_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.H3_textBox.Location = new System.Drawing.Point(306, 131);
|
||||
this.H3_textBox.Name = "H3_textBox";
|
||||
this.H3_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.H3_textBox.TabIndex = 11;
|
||||
this.H3_textBox.Text = "1500";
|
||||
//
|
||||
// H2_textBox
|
||||
//
|
||||
this.H2_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.H2_textBox.Location = new System.Drawing.Point(306, 96);
|
||||
this.H2_textBox.Name = "H2_textBox";
|
||||
this.H2_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.H2_textBox.TabIndex = 10;
|
||||
this.H2_textBox.Text = "1500";
|
||||
//
|
||||
// H1_textBox
|
||||
//
|
||||
this.H1_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.H1_textBox.Location = new System.Drawing.Point(306, 61);
|
||||
this.H1_textBox.Name = "H1_textBox";
|
||||
this.H1_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.H1_textBox.TabIndex = 9;
|
||||
this.H1_textBox.Text = "1500";
|
||||
//
|
||||
// W3_textBox
|
||||
//
|
||||
this.W3_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.W3_textBox.Location = new System.Drawing.Point(217, 132);
|
||||
this.W3_textBox.Name = "W3_textBox";
|
||||
this.W3_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.W3_textBox.TabIndex = 8;
|
||||
this.W3_textBox.Text = "1500";
|
||||
//
|
||||
// W2_textBox
|
||||
//
|
||||
this.W2_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.W2_textBox.Location = new System.Drawing.Point(217, 97);
|
||||
this.W2_textBox.Name = "W2_textBox";
|
||||
this.W2_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.W2_textBox.TabIndex = 7;
|
||||
this.W2_textBox.Text = "1500";
|
||||
//
|
||||
// W1_textBox
|
||||
//
|
||||
this.W1_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.W1_textBox.Location = new System.Drawing.Point(217, 62);
|
||||
this.W1_textBox.Name = "W1_textBox";
|
||||
this.W1_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.W1_textBox.TabIndex = 6;
|
||||
this.W1_textBox.Text = "1500";
|
||||
//
|
||||
// Y3_textBox
|
||||
//
|
||||
this.Y3_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.Y3_textBox.Location = new System.Drawing.Point(126, 132);
|
||||
this.Y3_textBox.Name = "Y3_textBox";
|
||||
this.Y3_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.Y3_textBox.TabIndex = 5;
|
||||
this.Y3_textBox.Text = "3000";
|
||||
//
|
||||
// Y2_textBox
|
||||
//
|
||||
this.Y2_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.Y2_textBox.Location = new System.Drawing.Point(126, 97);
|
||||
this.Y2_textBox.Name = "Y2_textBox";
|
||||
this.Y2_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.Y2_textBox.TabIndex = 4;
|
||||
this.Y2_textBox.Text = "1500";
|
||||
//
|
||||
// Y1_textBox
|
||||
//
|
||||
this.Y1_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.Y1_textBox.Location = new System.Drawing.Point(126, 62);
|
||||
this.Y1_textBox.Name = "Y1_textBox";
|
||||
this.Y1_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.Y1_textBox.TabIndex = 3;
|
||||
this.Y1_textBox.Text = "0";
|
||||
//
|
||||
// X3_textBox
|
||||
//
|
||||
this.X3_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.X3_textBox.Location = new System.Drawing.Point(33, 132);
|
||||
this.X3_textBox.Name = "X3_textBox";
|
||||
this.X3_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.X3_textBox.TabIndex = 2;
|
||||
this.X3_textBox.Text = "3000";
|
||||
//
|
||||
// X2_textBox
|
||||
//
|
||||
this.X2_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.X2_textBox.Location = new System.Drawing.Point(33, 97);
|
||||
this.X2_textBox.Name = "X2_textBox";
|
||||
this.X2_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.X2_textBox.TabIndex = 1;
|
||||
this.X2_textBox.Text = "1500";
|
||||
//
|
||||
// X1_textBox
|
||||
//
|
||||
this.X1_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.X1_textBox.Location = new System.Drawing.Point(33, 62);
|
||||
this.X1_textBox.Name = "X1_textBox";
|
||||
this.X1_textBox.Size = new System.Drawing.Size(69, 29);
|
||||
this.X1_textBox.TabIndex = 0;
|
||||
this.X1_textBox.Text = "0";
|
||||
//
|
||||
// GenerateTmatrixCode_button
|
||||
//
|
||||
this.GenerateTmatrixCode_button.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.GenerateTmatrixCode_button.Location = new System.Drawing.Point(398, 42);
|
||||
this.GenerateTmatrixCode_button.Name = "GenerateTmatrixCode_button";
|
||||
this.GenerateTmatrixCode_button.Size = new System.Drawing.Size(201, 37);
|
||||
this.GenerateTmatrixCode_button.TabIndex = 1;
|
||||
this.GenerateTmatrixCode_button.Text = "Generate Code";
|
||||
this.GenerateTmatrixCode_button.UseVisualStyleBackColor = true;
|
||||
this.GenerateTmatrixCode_button.Click += new System.EventHandler(this.GenerateTmatrixCode_button_Click);
|
||||
//
|
||||
// FName_textBox
|
||||
//
|
||||
this.FName_textBox.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.FName_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.FName_textBox.Location = new System.Drawing.Point(18, 302);
|
||||
this.FName_textBox.Name = "FName_textBox";
|
||||
this.FName_textBox.Size = new System.Drawing.Size(539, 27);
|
||||
this.FName_textBox.TabIndex = 12;
|
||||
this.FName_textBox.Visible = false;
|
||||
//
|
||||
// SPID_textBox
|
||||
//
|
||||
this.SPID_textBox.ForeColor = System.Drawing.Color.Navy;
|
||||
this.SPID_textBox.ImeMode = System.Windows.Forms.ImeMode.Alpha;
|
||||
this.SPID_textBox.Location = new System.Drawing.Point(297, 47);
|
||||
this.SPID_textBox.Name = "SPID_textBox";
|
||||
this.SPID_textBox.Size = new System.Drawing.Size(74, 29);
|
||||
this.SPID_textBox.TabIndex = 7;
|
||||
this.SPID_textBox.Text = "0";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(169, 49);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(124, 23);
|
||||
this.label5.TabIndex = 6;
|
||||
this.label5.Text = "Start Page ID :";
|
||||
//
|
||||
// Exit_button
|
||||
//
|
||||
this.Exit_button.Location = new System.Drawing.Point(632, 481);
|
||||
this.Exit_button.Name = "Exit_button";
|
||||
this.Exit_button.Size = new System.Drawing.Size(69, 37);
|
||||
this.Exit_button.TabIndex = 8;
|
||||
this.Exit_button.Text = "Exit";
|
||||
this.Exit_button.UseVisualStyleBackColor = true;
|
||||
this.Exit_button.Click += new System.EventHandler(this.Exit_button_Click);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Location = new System.Drawing.Point(374, 565);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(38, 22);
|
||||
this.panel1.TabIndex = 10;
|
||||
this.panel1.Visible = false;
|
||||
//
|
||||
// Tmatrix_Form
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 23F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(716, 528);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.Exit_button);
|
||||
this.Controls.Add(this.PDF_groupBox);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.ForeColor = System.Drawing.Color.Navy;
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "Tmatrix_Form";
|
||||
this.Text = "Tmatrix Code Generator OID4 (V1.1.1)";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Tmatrix_Form_FormClosing);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.PDF_groupBox.ResumeLayout(false);
|
||||
this.PDF_groupBox.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button SelectTmatrixKey_button;
|
||||
private System.Windows.Forms.Button SelectPDF_button;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.TextBox Expiration_textBox;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox PID2_textBox;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox PID1_textBox;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox BID_textBox;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.GroupBox PDF_groupBox;
|
||||
private System.Windows.Forms.TextBox SPID_textBox;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Button GenerateTmatrixCode_button;
|
||||
private System.Windows.Forms.TextBox FName_textBox;
|
||||
private System.Windows.Forms.Button Exit_button;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.TextBox X2_textBox;
|
||||
private System.Windows.Forms.TextBox X1_textBox;
|
||||
private System.Windows.Forms.Button GeneratePartialCode_button;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox H3_textBox;
|
||||
private System.Windows.Forms.TextBox H2_textBox;
|
||||
private System.Windows.Forms.TextBox H1_textBox;
|
||||
private System.Windows.Forms.TextBox W3_textBox;
|
||||
private System.Windows.Forms.TextBox W2_textBox;
|
||||
private System.Windows.Forms.TextBox W1_textBox;
|
||||
private System.Windows.Forms.TextBox Y3_textBox;
|
||||
private System.Windows.Forms.TextBox Y2_textBox;
|
||||
private System.Windows.Forms.TextBox Y1_textBox;
|
||||
private System.Windows.Forms.TextBox X3_textBox;
|
||||
private System.Windows.Forms.Label label13;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.TextBox SID_textBox;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox OID_textBox;
|
||||
private System.Windows.Forms.Label label14;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,301 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Acrobat;
|
||||
using DocumentTools;
|
||||
using DrawToolsLib;
|
||||
using AxAcroPDFLib;
|
||||
using AcroPDFLib;
|
||||
using iTextSharp.text.pdf;
|
||||
|
||||
using TmatrixLibrary;
|
||||
|
||||
namespace TmatrixCodeGenerator
|
||||
{
|
||||
public partial class Tmatrix_Form : Form
|
||||
{
|
||||
StreamReader gsr;
|
||||
string TMXFileName, PDFFileName, gKeyStr;
|
||||
TmatrixClass TMC = new TmatrixClass();
|
||||
public static string gPrintFileName;
|
||||
string gDirectory = Application.StartupPath;
|
||||
string gFileName = "";
|
||||
bool gbInitDone = false;
|
||||
//string gUserName = "";
|
||||
//string gPassword = "";
|
||||
|
||||
enum TMATRIX_POINT_TYPE
|
||||
{
|
||||
TmatrixPointType_2x2 = 0, // 2x2 Point Type
|
||||
TmatrixPointType_3x3 = 1, // 3x3 Point Type
|
||||
};
|
||||
enum TMATRIX_OBJECT_TYPE
|
||||
{
|
||||
TMATRIX_OT_ElementCode = 0, // 此类型对象的Index范围是:75497472~83886079(十六进制为:0x04800000~0x04ffffff)
|
||||
TMATRIX_OT_PositionCode, // 此类型对象没有Index
|
||||
};
|
||||
|
||||
public Tmatrix_Form()
|
||||
{
|
||||
InitializeComponent();
|
||||
if (TMC.TmatrixInitialize() == false)
|
||||
{
|
||||
MessageBox.Show(this, "Tmatrix code generator initialize fail !", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
gbInitDone = true;
|
||||
}
|
||||
}
|
||||
private void GenerateCode()
|
||||
{
|
||||
GenerateCode_Form dialog = new GenerateCode_Form();
|
||||
dialog.ShowDialog();
|
||||
if (GlobalClass.gbGenPageSet == false) return;
|
||||
if (gbInitDone == false)
|
||||
{
|
||||
MessageBox.Show(this, "Tmatrix code generator initialize fail !", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
int SPID = 0;
|
||||
try
|
||||
{
|
||||
SPID = int.Parse(SPID_textBox.Text);
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show(this, "Please input correct format for start page ID !", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
MessageBox.Show(this, "Generating Tmatrix code...........", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
this.Hide();
|
||||
//int PointType = (int)(TMATRIX_POINT_TYPE.TmatrixPointType_3x3);
|
||||
//string sGenerateResult = TMC.GenerateTmatrixCode(gKeyStr, PDFFileName, SPID, PointType, GlobalClass.gbGenerateBGWithVImage, GlobalClass.gbGenerateVImage, GlobalClass.gbGenerateBGWithoutVImage, GlobalClass.gbGenerateBGWithImage);
|
||||
bool[] bPublishImageType = new bool[4];
|
||||
bPublishImageType[0] = GlobalClass.gbGenerateBGWithVImage;
|
||||
bPublishImageType[1] = GlobalClass.gbGenerateVImage;
|
||||
bPublishImageType[2] = GlobalClass.gbGenerateBGWithoutVImage;
|
||||
bPublishImageType[3] = GlobalClass.gbGenerateBGWithImage;
|
||||
|
||||
string sGenerateResult = TMC.GenerateTmatrixCode_OID4(gKeyStr, PDFFileName, SPID, GlobalClass.gPointType, bPublishImageType, GlobalClass.gPointDPI);
|
||||
if (sGenerateResult.Substring(0, 1) == "1")
|
||||
{
|
||||
this.Show();
|
||||
MessageBox.Show(this, sGenerateResult.Substring(1, sGenerateResult.Length - 1), "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
else if (sGenerateResult.Substring(0, 1) == "0")
|
||||
{
|
||||
gDirectory = Path.GetDirectoryName(PDFFileName);
|
||||
gFileName = Path.GetFileName(PDFFileName);
|
||||
/*
|
||||
gDirectory += "\\";
|
||||
string WFName = gFileName.Substring(0, gFileName.Length - 4) + "_*.PDF";
|
||||
string[] files = Directory.GetFiles(@gDirectory, WFName);
|
||||
int i;
|
||||
string Pfile;
|
||||
File_listBox.Items.Clear();
|
||||
for (i = 0; i < files.Length; i++)
|
||||
{
|
||||
Pfile = Path.GetFileName(files[i]);
|
||||
File_listBox.Items.Add(Pfile);
|
||||
File_listBox.SelectedIndex = File_listBox.Items.Count - 1;
|
||||
}
|
||||
*/
|
||||
this.Show();
|
||||
MessageBox.Show(this, sGenerateResult.Substring(1, sGenerateResult.Length - 1), "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
private void GenerateCode_old()
|
||||
{
|
||||
GenerateCode_Form dialog = new GenerateCode_Form();
|
||||
dialog.ShowDialog();
|
||||
if (GlobalClass.gbGenPageSet == false) return;
|
||||
if (gbInitDone == false)
|
||||
{
|
||||
MessageBox.Show(this, "Tmatrix code generator initialize fail !", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
int SPID = 0;
|
||||
try
|
||||
{
|
||||
SPID = int.Parse(SPID_textBox.Text);
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show(this, "Please input correct format for start page ID !", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
MessageBox.Show(this, "Generating Tmatrix code...........", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
this.Hide();
|
||||
int PointType = (int)(TMATRIX_POINT_TYPE.TmatrixPointType_3x3);
|
||||
string sGenerateResult = TMC.GenerateTmatrixCode(gKeyStr, PDFFileName, SPID, PointType, GlobalClass.gbGenerateBGWithVImage, GlobalClass.gbGenerateVImage, GlobalClass.gbGenerateBGWithoutVImage, GlobalClass.gbGenerateBGWithImage);
|
||||
if (sGenerateResult.Substring(0, 1) == "1")
|
||||
{
|
||||
this.Show();
|
||||
MessageBox.Show(this, sGenerateResult.Substring(1, sGenerateResult.Length - 1), "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
else if (sGenerateResult.Substring(0, 1) == "0")
|
||||
{
|
||||
gDirectory = Path.GetDirectoryName(PDFFileName);
|
||||
gFileName = Path.GetFileName(PDFFileName);
|
||||
this.Show();
|
||||
MessageBox.Show(this, sGenerateResult.Substring(1, sGenerateResult.Length - 1), "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
private void GenerateTmatrixCode_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
GenerateCode();
|
||||
}
|
||||
|
||||
private void SelectPDF_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog OpenDlg = new OpenFileDialog();
|
||||
OpenDlg.FileName = "";
|
||||
OpenDlg.DefaultExt = "pdf";
|
||||
OpenDlg.Filter = "PDF Files (*.pdf)|*.pdf";
|
||||
if (OpenDlg.ShowDialog() == DialogResult.OK) {
|
||||
PDFFileName = OpenDlg.FileName;
|
||||
FName_textBox.Text = PDFFileName;
|
||||
}
|
||||
}
|
||||
|
||||
private void Exit_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
private void SelectTmatrixKey_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog OpenDlg = new OpenFileDialog();
|
||||
OpenDlg.FileName = "";
|
||||
OpenDlg.DefaultExt = "tmx";
|
||||
OpenDlg.Filter = "TMX Files (*.tmx)|*.tmx";
|
||||
if (OpenDlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
BID_textBox.Text = "";
|
||||
PID1_textBox.Text = "";
|
||||
PID2_textBox.Text = "";
|
||||
Expiration_textBox.Text = "";
|
||||
PDF_groupBox.Enabled = false;
|
||||
PDFFileName = "";
|
||||
TMXFileName = OpenDlg.FileName;
|
||||
//MessageBox.Show(TMXFileName);
|
||||
gsr = new StreamReader(TMXFileName);
|
||||
gKeyStr = gsr.ReadLine();
|
||||
gsr.Close();
|
||||
string KeyCheckResult = TMC.TmatrixKeyCheck_OID4(gKeyStr);
|
||||
|
||||
if (KeyCheckResult.Substring(0, 1) == "1")
|
||||
{
|
||||
MessageBox.Show(this, KeyCheckResult.Substring(1, KeyCheckResult.Length - 1), "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
else if (KeyCheckResult.Substring(0, 1) == "0")
|
||||
{
|
||||
string[] s = gKeyStr.Split(';');
|
||||
string[] s1 = s[0].Split(',');
|
||||
SID_textBox.Text = s1[0].Substring(1, 1);
|
||||
OID_textBox.Text = s1[1].Substring(1, 3);
|
||||
BID_textBox.Text = s1[2].Substring(1, 4);
|
||||
PID1_textBox.Text = s1[3].Substring(1, 3);
|
||||
PID2_textBox.Text = s1[3].Substring(5, 3);
|
||||
Expiration_textBox.Text = s1[4].Substring(1, s1[4].Length - 1);
|
||||
PDF_groupBox.Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void Tmatrix_Form_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
TMC.TmatrixUninitialize();
|
||||
}
|
||||
private void GeneratePartialCode()
|
||||
{
|
||||
GenerateCode_Form dialog = new GenerateCode_Form();
|
||||
dialog.ShowDialog();
|
||||
if (GlobalClass.gbGenPageSet == false) return;
|
||||
if (gbInitDone == false)
|
||||
{
|
||||
MessageBox.Show(this, "Tmatrix code generator initialize fail !", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
int SPID = 0;
|
||||
try
|
||||
{
|
||||
SPID = int.Parse(SPID_textBox.Text);
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show(this, "Please input correct format for start page ID !", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
MessageBox.Show(this, "Generating Tmatrix code...........", "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
this.Hide();
|
||||
//int PointType = (int)(TMATRIX_POINT_TYPE.TmatrixPointType_3x3);
|
||||
|
||||
//256 is for Total Pages, 10 is for partial area in each page, this is just a sample program, area no can be expanded by yourself.
|
||||
UInt32[][] Tx = new UInt32[256][];
|
||||
UInt32[][] Ty = new UInt32[256][];
|
||||
UInt32[][] Tw = new UInt32[256][];
|
||||
UInt32[][] Th = new UInt32[256][];
|
||||
int i;
|
||||
for (i = 0; i < 256; i++)
|
||||
{
|
||||
Tx[i] = new UInt32[10];
|
||||
Ty[i] = new UInt32[10];
|
||||
Tw[i] = new UInt32[10];
|
||||
Th[i] = new UInt32[10];
|
||||
}
|
||||
Tx[0][0] = UInt32.Parse(X1_textBox.Text);
|
||||
Tx[1][0] = UInt32.Parse(X2_textBox.Text);
|
||||
Tx[2][0] = UInt32.Parse(X3_textBox.Text);
|
||||
Ty[0][0] = UInt32.Parse(Y1_textBox.Text);
|
||||
Ty[1][0] = UInt32.Parse(Y2_textBox.Text);
|
||||
Ty[2][0] = UInt32.Parse(Y3_textBox.Text);
|
||||
Tw[0][0] = UInt32.Parse(W1_textBox.Text);
|
||||
Tw[1][0] = UInt32.Parse(W2_textBox.Text);
|
||||
Tw[2][0] = UInt32.Parse(W3_textBox.Text);
|
||||
Th[0][0] = UInt32.Parse(H1_textBox.Text);
|
||||
Th[1][0] = UInt32.Parse(H2_textBox.Text);
|
||||
Th[2][0] = UInt32.Parse(H3_textBox.Text);
|
||||
Tw[0][1] = 0;
|
||||
Tw[1][1] = 0;
|
||||
Tw[2][1] = 0;
|
||||
Th[0][1] = 0;
|
||||
Th[1][1] = 0;
|
||||
Th[2][1] = 0;
|
||||
|
||||
//string sGenerateResult = TMC.GenerateTmatrixCodeByArea(gKeyStr, PDFFileName, SPID, PointType, GlobalClass.gbGenerateBGWithVImage, GlobalClass.gbGenerateVImage, GlobalClass.gbGenerateBGWithoutVImage, GlobalClass.gbGenerateBGWithImage,Tx, Ty, Tw, Th);
|
||||
string sGenerateResult = TMC.GenerateTmatrixCodeByArea_OID4(gKeyStr, PDFFileName, SPID, GlobalClass.gPointType, GlobalClass.gPointDPI, GlobalClass.gbGenerateBGWithVImage, GlobalClass.gbGenerateVImage, GlobalClass.gbGenerateBGWithoutVImage, GlobalClass.gbGenerateBGWithImage, Tx, Ty, Tw, Th);
|
||||
if (sGenerateResult.Substring(0, 1) == "1")
|
||||
{
|
||||
this.Show();
|
||||
MessageBox.Show(this, sGenerateResult.Substring(1, sGenerateResult.Length - 1), "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
else if (sGenerateResult.Substring(0, 1) == "0")
|
||||
{
|
||||
gDirectory = Path.GetDirectoryName(PDFFileName);
|
||||
gFileName = Path.GetFileName(PDFFileName);
|
||||
this.Show();
|
||||
MessageBox.Show(this, sGenerateResult.Substring(1, sGenerateResult.Length - 1), "Tmatrix Code Generator", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
private void GeneratePartialCode_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
GeneratePartialCode();
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
[General]
|
||||
VertionType=TQL
|
||||
CodeType=OID4
|
|
@ -0,0 +1,3 @@
|
|||
[General]
|
||||
Product = IW.6.COM-SONIX.STD0
|
||||
CodeType = OID4.0
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<File Version="1.0">
|
||||
<ExtensionPoint ID="I_OIDPGHelper" Enable="1">
|
||||
<Plugin ID="OIDPGHelper" Bundle="OIDPGHelper.dll" Enable="1"/>
|
||||
</ExtensionPoint>
|
||||
<ExtensionPoint ID="I_OIDTiffConvertor" Enable="1">
|
||||
<Plugin ID="OIDTiffConvertor" Bundle="OIDTiffConvertor.dll" Enable="1"/>
|
||||
</ExtensionPoint>
|
||||
</File>
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,20 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIDTTCCAjWgAwIBAgIJALSlTPHWayS7MA0GCSqGSIb3DQEBCwUAMB4xHDAaBgNV
|
||||
BAMTE1NPTmlYIENsb3VkIFNlcnZpY2UwHhcNMTUwMTA5MDg1OTAzWhcNMjUwMTA2
|
||||
MDg1OTAzWjAeMRwwGgYDVQQDExNTT05pWCBDbG91ZCBTZXJ2aWNlMIIBIjANBgkq
|
||||
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzZ3v3VyrPlkaUhdHXGuklJ67m9wrb0My
|
||||
RBLRCo9Z0x7FAKMfyXolSPT4KpdGYTbJOhMhxt3j3DiVCklUjHuoGTMDj7vKqCQ8
|
||||
eqtTIBz7LUOPAAOdUU/0mIFEu0rdOXDk31qNYGnwqjOiY5HOSSFgFh3jE46YlN/P
|
||||
6r23QL0IIymOkZfl6GJsT7IJ5lM2P1esezc81dM/PqFi3712Vyuk3p8GJcC2OqPT
|
||||
D68wKhOgxcJQ2sgPx+uAUNV6WgzKijT/59mmmSbm98srGSECjx+G1oHfUUIqlB2l
|
||||
t3aAjExNNtUHCXMEcd14ynwZML3b1bm1TB6/k7lNAKctRn0+DiW3SQIDAQABo4GN
|
||||
MIGKMB0GA1UdDgQWBBQhOz3/VjYsb/6r4KjenczQjRiMCzBOBgNVHSMERzBFgBQh
|
||||
Oz3/VjYsb/6r4KjenczQjRiMC6EipCAwHjEcMBoGA1UEAxMTU09OaVggQ2xvdWQg
|
||||
U2VydmljZYIJALSlTPHWayS7MAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgEGMA0G
|
||||
CSqGSIb3DQEBCwUAA4IBAQDHvbfp+1CSGD6XQJ3ULk+wKOmTr7r7rGT0HOQQOCYp
|
||||
Fw4mKHmgYUlASdcP5YMbJM+UmOhJKu6uOAhRNt+0S3luf3udhjc56UrMkbdAyS7W
|
||||
KrYoVb8b+iSym72T9uQ6ADlsq7W+I6O0Eiju8gsBYQL9P2Q6dATz4ZaUW4/1fgpL
|
||||
pqSF8LnC42n7uwlLuve94renNv/duqBy1StilbNFD6GzPJX+bRxffzmBEE6nAUzD
|
||||
h2QZyVWBXAkKOmjKClqWmKhkfDsNks60rzvypikQynLhi/Ik4NYs5B/m3XfD964E
|
||||
ZGYfpFCbcSp/s3wjDa83mC4HFtBHUE1AgcmJVXfdl1t4
|
||||
-----END CERTIFICATE-----
|
Binary file not shown.
Loading…
Reference in New Issue