Remove bak files / 7z files and unused solutions

This commit is contained in:
2026-08-26 05:54:42 -04:00
parent b06a2c5b62
commit 19666c33bf
43 changed files with 0 additions and 18221 deletions
Binary file not shown.
@@ -1,77 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dsoframer", "dsoframer.vcproj", "{005801E1-A867-4CBB-995F-BA2EF4360BDF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleCSharp", "..\SampleCSharp\SampleCSharp.csproj", "{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestC1DockingTab", "..\TestC1DockingTab\TestC1DockingTab.csproj", "{D066A5C4-72B8-45F8-A117-B967019F41AE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetBarDockable", "..\DotNetBarDockable\DotNetBarDockable.csproj", "{96DC8B48-A4E2-4826-A182-BE112B628B50}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetBarControl", "..\DotNetBarControl\DotNetBarControl.csproj", "{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|Win32 = Debug|Win32
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Any CPU.ActiveCfg = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Mixed Platforms.Build.0 = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Win32.ActiveCfg = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Win32.Build.0 = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Any CPU.ActiveCfg = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Mixed Platforms.ActiveCfg = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Mixed Platforms.Build.0 = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Win32.ActiveCfg = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Win32.Build.0 = Release|Win32
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Win32.ActiveCfg = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Any CPU.Build.0 = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Win32.ActiveCfg = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Win32.ActiveCfg = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Any CPU.Build.0 = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Win32.ActiveCfg = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Win32.ActiveCfg = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Any CPU.Build.0 = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Win32.ActiveCfg = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Win32.ActiveCfg = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Any CPU.Build.0 = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Win32.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -1,77 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dsoframer", "dsoframer.vcproj", "{005801E1-A867-4CBB-995F-BA2EF4360BDF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleCSharp", "..\SampleCSharp\SampleCSharp.csproj", "{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestC1DockingTab", "..\TestC1DockingTab\TestC1DockingTab.csproj", "{D066A5C4-72B8-45F8-A117-B967019F41AE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetBarDockable", "..\DotNetBarDockable\DotNetBarDockable.csproj", "{96DC8B48-A4E2-4826-A182-BE112B628B50}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetBarControl", "..\DotNetBarControl\DotNetBarControl.csproj", "{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|Win32 = Debug|Win32
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Any CPU.ActiveCfg = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Mixed Platforms.Build.0 = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Win32.ActiveCfg = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Debug|Win32.Build.0 = Debug|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Any CPU.ActiveCfg = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Mixed Platforms.ActiveCfg = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Mixed Platforms.Build.0 = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Win32.ActiveCfg = Release|Win32
{005801E1-A867-4CBB-995F-BA2EF4360BDF}.Release|Win32.Build.0 = Release|Win32
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Debug|Win32.ActiveCfg = Debug|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Any CPU.Build.0 = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{E7C7BC82-10A6-459B-8D48-9CE1C070E9FD}.Release|Win32.ActiveCfg = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Debug|Win32.ActiveCfg = Debug|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Any CPU.Build.0 = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{D066A5C4-72B8-45F8-A117-B967019F41AE}.Release|Win32.ActiveCfg = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Debug|Win32.ActiveCfg = Debug|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Any CPU.Build.0 = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{96DC8B48-A4E2-4826-A182-BE112B628B50}.Release|Win32.ActiveCfg = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Debug|Win32.ActiveCfg = Debug|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Any CPU.Build.0 = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{9939DC3D-AFB6-4B0D-813A-3EBE3FF7249D}.Release|Win32.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-8
View File
@@ -1,8 +0,0 @@
Sub Macro1()
'
' Macro1 Macro
'
'
Selection.ParagraphFormat.RightIndent = InchesToPoints(0.80)
End Sub
Binary file not shown.
Binary file not shown.
@@ -1,190 +0,0 @@
namespace ROEditor
{
partial class AboutROEditor
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutROEditor));
this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.logoPictureBox = new System.Windows.Forms.PictureBox();
this.labelProductName = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
this.labelCopyright = new System.Windows.Forms.Label();
this.labelCompanyName = new System.Windows.Forms.Label();
this.textBoxDescription = new System.Windows.Forms.TextBox();
this.okButton = new System.Windows.Forms.Button();
this.tableLayoutPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
this.SuspendLayout();
//
// tableLayoutPanel
//
this.tableLayoutPanel.ColumnCount = 2;
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F));
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67F));
this.tableLayoutPanel.Controls.Add(this.logoPictureBox, 0, 0);
this.tableLayoutPanel.Controls.Add(this.labelProductName, 1, 0);
this.tableLayoutPanel.Controls.Add(this.labelVersion, 1, 1);
this.tableLayoutPanel.Controls.Add(this.labelCopyright, 1, 2);
this.tableLayoutPanel.Controls.Add(this.labelCompanyName, 1, 3);
this.tableLayoutPanel.Controls.Add(this.textBoxDescription, 1, 4);
this.tableLayoutPanel.Controls.Add(this.okButton, 1, 5);
this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel.Location = new System.Drawing.Point(12, 11);
this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(4);
this.tableLayoutPanel.Name = "tableLayoutPanel";
this.tableLayoutPanel.RowCount = 6;
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.Size = new System.Drawing.Size(556, 326);
this.tableLayoutPanel.TabIndex = 0;
//
// logoPictureBox
//
this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image")));
this.logoPictureBox.Location = new System.Drawing.Point(4, 4);
this.logoPictureBox.Margin = new System.Windows.Forms.Padding(4);
this.logoPictureBox.Name = "logoPictureBox";
this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6);
this.logoPictureBox.Size = new System.Drawing.Size(175, 318);
this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.logoPictureBox.TabIndex = 12;
this.logoPictureBox.TabStop = false;
//
// labelProductName
//
this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelProductName.Location = new System.Drawing.Point(191, 0);
this.labelProductName.Margin = new System.Windows.Forms.Padding(8, 0, 4, 0);
this.labelProductName.MaximumSize = new System.Drawing.Size(0, 21);
this.labelProductName.Name = "labelProductName";
this.labelProductName.Size = new System.Drawing.Size(361, 21);
this.labelProductName.TabIndex = 19;
this.labelProductName.Text = "Product Name";
this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// labelVersion
//
this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelVersion.Location = new System.Drawing.Point(191, 32);
this.labelVersion.Margin = new System.Windows.Forms.Padding(8, 0, 4, 0);
this.labelVersion.MaximumSize = new System.Drawing.Size(0, 21);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Size = new System.Drawing.Size(361, 21);
this.labelVersion.TabIndex = 0;
this.labelVersion.Text = "Version";
this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// labelCopyright
//
this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelCopyright.Location = new System.Drawing.Point(191, 64);
this.labelCopyright.Margin = new System.Windows.Forms.Padding(8, 0, 4, 0);
this.labelCopyright.MaximumSize = new System.Drawing.Size(0, 21);
this.labelCopyright.Name = "labelCopyright";
this.labelCopyright.Size = new System.Drawing.Size(361, 21);
this.labelCopyright.TabIndex = 21;
this.labelCopyright.Text = "Copyright";
this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// labelCompanyName
//
this.labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelCompanyName.Location = new System.Drawing.Point(191, 96);
this.labelCompanyName.Margin = new System.Windows.Forms.Padding(8, 0, 4, 0);
this.labelCompanyName.MaximumSize = new System.Drawing.Size(0, 21);
this.labelCompanyName.Name = "labelCompanyName";
this.labelCompanyName.Size = new System.Drawing.Size(361, 21);
this.labelCompanyName.TabIndex = 22;
this.labelCompanyName.Text = "Company Name";
this.labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// textBoxDescription
//
this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBoxDescription.Location = new System.Drawing.Point(191, 132);
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(8, 4, 4, 4);
this.textBoxDescription.Multiline = true;
this.textBoxDescription.Name = "textBoxDescription";
this.textBoxDescription.ReadOnly = true;
this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBoxDescription.Size = new System.Drawing.Size(361, 155);
this.textBoxDescription.TabIndex = 23;
this.textBoxDescription.TabStop = false;
this.textBoxDescription.Text = "Description";
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.okButton.Location = new System.Drawing.Point(452, 295);
this.okButton.Margin = new System.Windows.Forms.Padding(4);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(100, 27);
this.okButton.TabIndex = 24;
this.okButton.Text = "&OK";
//
// AboutROEditor
//
this.AcceptButton = this.okButton;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(580, 348);
this.Controls.Add(this.tableLayoutPanel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Margin = new System.Windows.Forms.Padding(4);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutROEditor";
this.Padding = new System.Windows.Forms.Padding(12, 11, 12, 11);
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "AboutROEditor";
this.tableLayoutPanel.ResumeLayout(false);
this.tableLayoutPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
private System.Windows.Forms.PictureBox logoPictureBox;
private System.Windows.Forms.Label labelProductName;
private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label labelCopyright;
private System.Windows.Forms.Label labelCompanyName;
private System.Windows.Forms.TextBox textBoxDescription;
private System.Windows.Forms.Button okButton;
}
}
@@ -1,115 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;
namespace ROEditor
{
partial class AboutROEditor : Form
{
public AboutROEditor()
{
InitializeComponent();
// Initialize the AboutBox to display the product information from the assembly information.
// Change assembly information settings for your application through either:
// - Project->Properties->Application->Assembly Information
// - AssemblyInfo.cs
this.Text = String.Format("About {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;
}
#region Assembly Attribute Accessors
public string AssemblyTitle
{
get
{
// Get all Title attributes on this assembly
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
// If there is at least one Title attribute
if (attributes.Length > 0)
{
// Select the first one
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
// If it is not an empty string, return it
if (titleAttribute.Title != "")
return titleAttribute.Title;
}
// If there was no Title attribute, or if the Title attribute was the empty string, return the .exe name
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}
public string AssemblyVersion
{
get
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
public string AssemblyDescription
{
get
{
// Get all Description attributes on this assembly
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
// If there aren't any Description attributes, return an empty string
if (attributes.Length == 0)
return "";
// If there is a Description attribute, return its value
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
// Get all Product attributes on this assembly
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
// If there aren't any Product attributes, return an empty string
if (attributes.Length == 0)
return "";
// If there is a Product attribute, return its value
return ((AssemblyProductAttribute)attributes[0]).Product;
}
}
public string AssemblyCopyright
{
get
{
// Get all Copyright attributes on this assembly
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
// If there aren't any Copyright attributes, return an empty string
if (attributes.Length == 0)
return "";
// If there is a Copyright attribute, return its value
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
}
public string AssemblyCompany
{
get
{
// Get all Company attributes on this assembly
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
// If there aren't any Company attributes, return an empty string
if (attributes.Length == 0)
return "";
// If there is a Company attribute, return its value
return ((AssemblyCompanyAttribute)attributes[0]).Company;
}
}
#endregion
}
}
@@ -1,58 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("E:\\proms.net\\Public Key\\vlnkey.snk")]
[assembly: AssemblyKeyName("")]
@@ -1,876 +0,0 @@
/*********************************************************************************************
* Copyright 2002 - Volian Enterprises, Inc. All rights reserved.
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
* ------------------------------------------------------------------------------
* $Workfile: RO_FST.cs $ $Revision: 15 $
* $Author: Jsj $ $Date: 8/23/06 11:33a $
*
* $History: RO_FST.cs $
*
* ***************** Version 15 *****************
* User: Jsj Date: 8/23/06 Time: 11:33a
* Updated in $/EXE/RefObj/ROEditor
* debug statements commented out
*
* ***************** Version 14 *****************
* User: Jsj Date: 5/03/05 Time: 11:48a
* Updated in $/EXE/RefObj/ROEditor
* 2005 upgrade, move some ROFST logic to ROFST library
*
* ***************** Version 13 *****************
* User: Jsj Date: 5/11/04 Time: 9:29a
* Updated in $/EXE/RefObj/ROEditor
* Bug fix B2004-011, could not create FST file if user opened nodes on
* tree.
*
* ***************** Version 12 *****************
* User: Jsj Date: 4/08/04 Time: 9:48a
* Updated in $/EXE/RefObj/ROEditor
* Modified code to speed up the creation of the RO.FST file
*
* ***************** Version 11 *****************
* User: Jsj Date: 6/30/03 Time: 1:20p
* Updated in $/EXE/RefObj/ROEditor
* a NULL Accessory Page ID was giving problems in creating a new RO.FST
* file.
*
* ***************** Version 10 *****************
* User: Kathy Date: 6/11/03 Time: 2:01p
* Updated in $/EXE/RefObj/ROEditor
* Fix bug B2003-045
*
* ***************** Version 9 *****************
* User: Kathy Date: 5/30/03 Time: 12:48p
* Updated in $/EXE/RefObj/ROEditor
* B2003-044: sync up xml with UI tree view
*
* ***************** Version 8 *****************
* User: Kathy Date: 5/21/03 Time: 12:51p
* Updated in $/EXE/RefObj/ROEditor
* B2003-034: process data if only one field for RO & also, convert return
* value for xml save
*
* ***************** Version 7 *****************
* User: Jsj Date: 4/14/03 Time: 3:02p
* Updated in $/EXE/RefObj/ROEditor
* Speed up the creation of the RO.FST file
*
* ***************** Version 6 *****************
* User: Kathy Date: 4/04/03 Time: 9:41a
* Updated in $/EXE/RefObj/ROEditor
* B2003-030 convert new top group name to user readable for ro.fst
*
* ***************** Version 5 *****************
* User: Jsj Date: 2/21/03 Time: 9:51a
* Updated in $/EXE/RefObj/ROEditor
* added RO FST completed message
*
* ***************** Version 4 *****************
* User: Jsj Date: 1/02/03 Time: 9:31a
* Updated in $/EXE/RefObj/ROEditor
* Save Graphics file date in RO.FST file
*
* ***************** Version 3 *****************
* User: Jsj Date: 12/17/02 Time: 4:54p
* Updated in $/EXE/RefObj/ROEditor
* save real date for graphic files
*
* ***************** Version 2 *****************
* User: Jsj Date: 12/06/02 Time: 3:26p
* Updated in $/EXE/RefObj/ROEditor
* parameter display data fix (ingoring this data for now)
*
* ***************** Version 1 *****************
* User: Jsj Date: 11/27/02 Time: 12:53p
* Created in $/EXE/RefObj/ROEditor
* Modification to create the RO.FST file
*********************************************************************************************/
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Xml;
using System.Xml.Schema;
using System.Text;
using System.IO;
using RODBInterface;
using System.Runtime.InteropServices;
using VlnStatus;
using System.Collections.Specialized;
using ROFST_FILE;
//using VlnProfiler; //don't forget to add VlnProfiler to the reference list
namespace ROEditor
{
/// <summary>
/// This creates an RO.FST file
/// </summary>
class FstTmpSTRC
{
public ushort thistype;
public uint thisoff;
public string title;
public FstTmpSTRC(ushort type, uint offset, string tl)
{
thistype = type;
thisoff = offset;
title = tl;
}
void WriteString(BinaryWriter bw, string str)
{
int n=str.Length;
byte [] b = new byte[n+1];
for(int i =0; i < n; i++)
{
b[i] = (byte)str[i];
}
bw.Write(b,0,n+1); // +1 to include null
/**
byte nullbyte = 0;
int i;
for(i =0; i < str.Length; i++)
{
byte WrByte;
WrByte = (byte)str[i];
bw.Write(WrByte);
}
bw.Write(nullbyte);
***/
}
public void Write(BinaryWriter bw)
{
bw.Write(thisoff);
bw.Write(thistype);
WriteString(bw,title);
}
}
// The Sorted Array was not sorting via the ASCII value of each character in a given string.
// This sorting function compares two strings by doing a character by character comparison.
public class MyComparer : IComparer
{
public int Compare (object x, object y)
{
int rtnval = 0;
int xcnt=0,ycnt=0;
int xlen,ylen;
byte xbyte, ybyte;
string xbuff = x.ToString();
string ybuff = y.ToString();
xlen = xbuff.Length;
ylen = ybuff.Length;
if (xbuff[0] == '<')
rtnval = 0;
if (ybuff[0] == '<')
rtnval = 0;
while ((rtnval==0) && ((xcnt < xlen) || (ycnt < ylen)))
{
xbyte = (xcnt == xlen)? (byte)0 : (byte)xbuff[xcnt++];
ybyte = (ycnt == ylen)? (byte)0 : (byte)ybuff[ycnt++];
rtnval = xbyte - ybyte;
}
return rtnval;
}
}
public class RO_FST
{
private FST_FileHeader FstHeader;
private string FstDir; // path to the RO directory
private string FstPath; // RO directory Path and RO.FST file name
private string FstOld; // ROFST.Old file name (backup of previous fst file)
private string FstNew; // ROFST.New hold the RO.FST info during creation
private BinaryWriter fhFST; // write handle to FST file being created
private VlnStatusBar StatusWin;
private RODB ROdatabase;
private XmlDocument FSTroXmlDoc;
// private HybridDictionary dicTiming;
// private HybridDictionary dicDuration;
ushort widestAcPgId;
SortedList IdsAndAccPgIds;
SortedList IdsAndOffsets;
ushort AllTypesUsed;
private Stack InUseListStack;
private Stack RtnValTmplateStack;
// private DateTime dtLast=DateTime.Now;
public RO_FST(RODB TheROdb, XmlDocument TheXmlDoc)
{
ROdatabase = TheROdb; // point to the RO database
FSTroXmlDoc = TheXmlDoc;
}
public bool Create()
{
bool RtnStat = true;
// dicDuration=new HybridDictionary();
// dicTiming=new HybridDictionary();
// Profiler.Reset();
// position to the top of the tree
// CurrentNode = roTree.TopNode;
// Setup the paths to the FST files
FstDir = Directory.GetCurrentDirectory();
FstPath = FstDir + "\\RO.FST";
FstOld = FstDir + "\\ROFST.Old";
FstNew = FstDir + "\\ROFST.New";
// open a temporary file for building the RO.FST
try
{
fhFST = new BinaryWriter(File.Open(FstNew,System.IO.FileMode.Create,System.IO.FileAccess.ReadWrite));
}
catch (Exception fhExc)
{
string errmsg = fhExc.Message;
MessageBox.Show(errmsg,"Error Creating RO.FST file",System.Windows.Forms.MessageBoxButtons.OK);
RtnStat = false;
}
// If we were able to open a new ROFST.NEW file then go ahead and put the
// new FST information into it.
if (RtnStat)
RtnStat = BuildNewRoFST();
if (RtnStat) // successful in creating new RO FST file?
{
//If an RO.FST file already exists,
// rename the existing file for safe keeping
if (File.Exists(FstPath))
{
// copy the existing RO.FST to ROFST.OLD
// - overrite ROFST.OLD if it already exists
File.Copy(FstPath,FstOld,true); // save RO.FST as ROFST.OLD
File.Delete(FstPath); // remove RO.FST
}
File.Copy(FstNew,FstPath,true); // save ROFST.NEW as RO.fST
File.Delete(FstNew); // remove ROFST.NEW
MessageBox.Show("New RO.FST file created successfully.","Create RO.FST file",System.Windows.Forms.MessageBoxButtons.OK);
}
// MessageBox.Show(Profiler.ToString("000.00%"),"Timings");
// dicDuration=null;
// dicTiming=null;
return RtnStat;
}
private bool BuildNewRoFST()
{
bool RtnVal = true;
int i;
int numDatabases;
// write the empty header - save space for the header info
FstHeader = new FST_FileHeader();
FstHeader.Write(fhFST);
// point to the ROMASTER and get the number of databases it has
VlnXmlElement ROdbtables = (VlnXmlElement) FSTroXmlDoc.FirstChild;
numDatabases = ROdbtables.ChildNodes.Count;
// Allocate a list of database info structures
ROFST_DbInfo[] dbinfo = new ROFST_DbInfo[numDatabases];
//For each RO database, process each group
XmlNode ROtableNode = ROdbtables;
ROtableNode = ROtableNode.FirstChild;
StatusWin = new VlnStatusBar("Creating RO.FST file");
for (i=0; i < numDatabases && RtnVal; i++)
{
dbinfo[i] = new ROFST_DbInfo();
RtnVal = SaveToFSTFile(ROtableNode,dbinfo[i]);
dbinfo[i].dbiType = AllTypesUsed;
ROtableNode = ROtableNode.NextSibling;
}
if (RtnVal)
{
VlnXmlElement tblnode = (VlnXmlElement) ROdbtables.FirstChild;
StatusWin.BarMax = numDatabases * 2;
StatusWin.BarStepValue = 1;
StatusWin.BarValue = 0;
// All of the RO database, group, and return value information
// was saved to the FST file. Now save the information needed
// to read the FST file.
// Save DB list
uint lngbuf = 0;
uint dblength = (uint)fhFST.BaseStream.Position;
fhFST.Write(lngbuf);
ushort intbuf = Convert.ToUInt16(numDatabases);
fhFST.Write(intbuf);
// The old code did a sizeof() on a structure containing the ROFSTDatabaseInfo (dbi)
// You cannot read/write a Struct type in C# like you can with C++. The C# books suggest
// creating a Class to replace the Struct, then create methods that perform the binary
// read/write. So I created a method that calculates the "struct" size to simulate the
// sizeof(struct dbi)
uint lngval = (dbinfo[0].GetStructSize()) * (uint)numDatabases;
for (i=0; i<numDatabases; i++)
{
StatusWin.PerformStep();
dbinfo[i].WriteUntAndShort(fhFST);
fhFST.Write(lngval);
lngval += (uint)dbinfo[i].dbiTitle.Length+1;
fhFST.Write(lngval);
lngval += (uint)dbinfo[i].dbiAP.Length+1;
}
// write the titles and accessory page ids
for (i=0; i<numDatabases;i++)
{
tblnode.SetAttribute("TreeNotData","True");
StatusWin.PerformStep();
dbinfo[i].WriteStrings(fhFST);
tblnode = (VlnXmlElement) tblnode.NextSibling;
}
int dbend = (int)fhFST.BaseStream.Position;
fhFST.Seek((int)dblength,System.IO.SeekOrigin.Begin);
lngbuf = (uint)(dbend-dblength-4);//sizeof(dblength);
fhFST.Write(lngbuf);
fhFST.Seek(0,System.IO.SeekOrigin.Begin);
// save the header information
FstHeader.SetHeader(dblength);
FstHeader.Write(fhFST);
// Close the status window
StatusWin.Dispose();
// close tmporary FST file
fhFST.Close();
}
return RtnVal;
}
private string CvtFldToUserFld(string fldname)
{
string tmpstr0;
if (fldname.Length < 2) return fldname;
// an xml element name cannot begin with a digit. we had prepended a "__"
if (fldname.Substring(0,2) == "__" && char.IsDigit(fldname,2))
tmpstr0 = fldname.Substring(2,fldname.Length-2);
else
tmpstr0 = fldname;
// an xml element name cannot have a space, we converted to a "__"
string tmpstr = tmpstr0.Replace("__"," ");
int len = tmpstr.Length;
int cur = 0;
// this is also our sequence that tells us the follow 3 digits is the ascii number (base 10)
// of the character we replaced.
string OKpunch = "-._";
string outstr = "";
int decval, indx;
if (tmpstr.Length <6)
indx = -1;
else
indx=tmpstr.IndexOf(OKpunch,cur);
string asc_spchar;
while (indx>=0)
{
outstr += tmpstr.Substring(cur,indx-cur);
asc_spchar = tmpstr.Substring(indx+3,3);
decval = System.Convert.ToInt16(asc_spchar,10);
outstr += System.Convert.ToChar(decval).ToString();
cur = indx+6;
if (cur+6 > len)
indx = -1;
else
indx = tmpstr.IndexOf(OKpunch,cur);
}
if (cur<len) outstr += tmpstr.Substring(cur,len-cur);
return outstr;
}
// If any of the nodes on the user interface tree were open,
// the group info for those nodes were aleady read.
// To speed up the RO.FST file creation, remove these read in
// child nodes so the the code can do one big database read
// to get all of the child info for a high level group, instead
// of many database reads (one for each lower level group).
private void RemoveGroupChildNodes(XmlNode TheROtableNode)
{
VlnXmlElement elem = (VlnXmlElement) TheROtableNode;
string strHasChild = elem.GetAttribute("HasChild");
string strChildLoaded = elem.GetAttribute("ChildLoaded");
if (strHasChild.Equals("True") && strChildLoaded.Equals("True"))
{
VlnXmlElement kid, delkid;
XmlNode chldNode = TheROtableNode.FirstChild;
while (chldNode != null)
{
delkid = null;
if (chldNode is VlnXmlElement)
{
kid = (VlnXmlElement) chldNode;
if (kid.HasAttribute("RecID"))delkid = kid;
}
chldNode = chldNode.NextSibling;
if (delkid != null) elem.RemoveChild(delkid);
}
elem.SetAttribute("ChildLoaded","False");
}
}
private bool SaveToFSTFile(XmlNode TheROtableNode,ROFST_DbInfo Thedbinfo)
{
// Profiler.Start("Startup");
bool RtnVal = false;
IComparer StrCompare = new MyComparer();
IdsAndAccPgIds = new SortedList(StrCompare);
IdsAndOffsets = new SortedList();
VlnXmlElement elem = (VlnXmlElement) TheROtableNode;
// Save The Database Filename NUMBER (EX 02 FOR RO000002)
// note that the number part of the filename is in base 10, NOT base 16!
string tablename = elem.GetAttribute("Table");
ushort shorttmp = System.Convert.ToUInt16(tablename.Substring(2),10);
Thedbinfo.dbiID = shorttmp;
// Save the database title
Thedbinfo.dbiTitle = CvtFldToUserFld(elem.FirstChild.InnerText);
StatusWin.StatusBoxTitle = "Processing " + Thedbinfo.dbiTitle;
// Save the Accessory Page ID Prefix
Thedbinfo.dbiAP = elem.GetAttribute("AccPageIDPrefix");
// Get the Accessory Page ID Template
string AccPageIDTplate = elem.GetAccPageIDTemplate();
// Get the list of available fields
ArrayList AvailList;
AvailList = ROdatabase.RODB_GetFields(elem, (uint) RecordType.Schema);
// Initialize a stack for the FieldsInUse lists
InUseListStack = new Stack();
//Initialize a stack for the return value template
RtnValTmplateStack = new Stack();
widestAcPgId = 0;
AllTypesUsed = 0;
// for each group..
// ... save to the FST file and get widestAcPgId
// .... also save a RECID/ACCPGID to a sorted list
// ... also save a RECID/FSToffset to a sorted list
// XmlNode GroupNode = TheROtableNode;
StatusWin.BarMax = ROdatabase.RODB_GetNumberOfROValueRecords(tablename)+1;
StatusWin.BarStepValue = 1;
StatusWin.BarValue = 0;
StatusWin.StatMsg = "Saving To RO.FST File";
// Profiler.End("Startup");
RemoveGroupChildNodes(TheROtableNode);
Thedbinfo.dbiGL = SaveFstGroup(TheROtableNode,0,ref AllTypesUsed,AvailList,AccPageIDTplate);
// Profiler.Start("Finish");
Thedbinfo.dbiIL = (uint)fhFST.BaseStream.Position;
StatusWin.StatMsg = "Saving RO References";
StatusWin.BarMax = IdsAndOffsets.Count + IdsAndAccPgIds.Count;
StatusWin.BarStepValue = 1;
StatusWin.BarValue = 0;
// save the IdsAndOffsets list
for (int i=0; i<IdsAndOffsets.Count; i++)
{
uint buf1;
uint buf2;
// IDsAndOffsetMemBlock tbuf = new IDsAndOffsetMemBlock();
StatusWin.PerformStep();
buf1 = System.Convert.ToUInt32(IdsAndOffsets.GetKey(i));
// buf1 = SwapBytes(buf1);
buf2 = System.Convert.ToUInt32(IdsAndOffsets.GetByIndex(i));
fhFST.Write(buf1);
fhFST.Write(buf2);
RtnVal = true;
}
IdsAndOffsets.Clear();
// write ACCPageIDs and offsets
Thedbinfo.dbiAL = (uint)fhFST.BaseStream.Position;
Thedbinfo.dbiAW = widestAcPgId;
// spin through the children nodes and look for AccPageIds
for (int i=0; i<IdsAndAccPgIds.Count; i++)
{
string ACCPageIDstr;
uint RecIDint;
StatusWin.PerformStep();
ACCPageIDstr = Convert.ToString(IdsAndAccPgIds.GetKey(i));
ACCPageIDstr = ACCPageIDstr.PadRight(widestAcPgId,(char)0);
RecIDint = Convert.ToUInt32(IdsAndAccPgIds.GetByIndex(i));
fhFST.Write(RecIDint);
WriteString(ACCPageIDstr,false);
}
IdsAndAccPgIds.Clear();
// Save the end offset for this database (table)
Thedbinfo.dbiEND = (uint)fhFST.BaseStream.Position;
// Profiler.End("Finish");
return RtnVal;
}
private uint SaveFstGroup(XmlNode GroupNode, uint parentID,ref ushort typ,ArrayList AvailList,string AccPageIDTplate)
{
uint RtnVal;
uint curRecID;
ushort curType = 0;
ushort numgroups;
uint elemParentID;
ArrayList FstTmp;
FstTmpSTRC tmpfststrc;
bool PopInUseStack = false;
bool PopRtnValStack = false;
// FstTmp is an array that stores record type, menu title,
// and offset into the FST file for each RO (non group) record
FstTmp = new ArrayList();
VlnXmlElement elem;
elem = (VlnXmlElement) GroupNode;
// Get the current node's record id
string RecIdStr = elem.GetAttribute("RecID");
curRecID = System.Convert.ToUInt32(RecIdStr,16);
// Get the current node's parent id
string ParIdStr = elem.GetAttribute("ParentID");
elemParentID = Convert.ToUInt32(ParIdStr,16);
string HasKids = elem.GetAttribute("HasChild");
string KidsLoaded = elem.GetAttribute("ChildLoaded");
numgroups = 0;
if (KidsLoaded != "True" && HasKids.Equals("True"))
{
// Profiler.Start("GetChildData");
// ROdatabase.RODB_GetChildData(elem,true);
ROdatabase.RODB_GetGroupAndSubgroups(elem);
// Profiler.End("GetChildData");
}
XmlNode tmpnode = GroupNode;
XmlNode chldnode;
VlnXmlElement ChildElem;
// Process the children. If the child is a subgroup,
// call this function (SaveFstGroup) again. If the
// child is a RO record, save the RO information to
// the FST file.
chldnode = tmpnode.FirstChild;
if (chldnode != null)
{
string dummy = ""; // need for RODB_GetFIeldsInUse call, won't be used.
// ArrayList AvailList, InUseList;
ArrayList InUseList;
// ArrayList tmpAvailList;
string RtnValTmplate;
// if the current group has a "FieldInUse" list, go get it.
if (elem.HasAttribute("FieldsInUse") == true)
{
// Profiler.Start("GetFieldsInUse");
InUseList = ROdatabase.RODB_GetFieldsInUse(elem, AvailList,"FieldsInUse", ref dummy, false);
// save the InUseList on a stack for children to use if they don't have one of their own
InUseListStack.Push(InUseList);
// Profiler.End("GetFieldsInUse");
PopInUseStack = true;
}
else
{
// Use the InUseList from this group's parent
InUseList = (ArrayList)InUseListStack.Peek();
PopInUseStack = false;
}
// if the current group has a "RetVal", go get it
if (elem.HasAttribute("RetVal") == true)
{
RtnValTmplate = elem.GetReturnValueTemplate();
// save the RtnValTmplate on a stack for children to use if they don't have one
RtnValTmplateStack.Push(RtnValTmplate);
PopRtnValStack = true;
}
else
{
// use the parent's RtnValTmplate
RtnValTmplate = (string) RtnValTmplateStack.Peek();
PopRtnValStack = false;
}
while (chldnode != null)
{
uint curOffset =0;
bool SkipThisOne;
if (chldnode is VlnXmlElement)
{
SkipThisOne = false;
ChildElem = (VlnXmlElement) chldnode;
if (ChildElem.Name == "vlnGroup") // is a subgroup?
{
curType=0;
curOffset = SaveFstGroup(chldnode,curRecID,ref curType,AvailList,AccPageIDTplate); // process subgroup
}
else // save RO info.
{
int levelCnt = chldnode.ChildNodes.Count;
string TheMenuTitle = ChildElem.GetAttribute("MenuTitle");
if ((levelCnt >= 1) && !TheMenuTitle.Equals(""))
{
curOffset = (uint)fhFST.BaseStream.Position;
curType = SaveROToFST(chldnode,InUseList,RtnValTmplate,AccPageIDTplate);
}
else
{
SkipThisOne = true;
}
}
if (!SkipThisOne)
{
string tmpstr = ChildElem.GetAttribute("MenuTitle");
tmpfststrc = new FstTmpSTRC(curType,curOffset,tmpstr);
FstTmp.Add(tmpfststrc);
typ |= curType;
numgroups++;
}
} // end if VlnXmlElement
// Get next child
chldnode = chldnode.NextSibling;
}// end while
} // if child is not null
// pop the InUseList stack
if (PopInUseStack)
InUseListStack.Pop();
// pop the return valuse template stack
if (PopRtnValStack)
RtnValTmplateStack.Pop();
// save the current position of the FST file for the return value
RtnVal = (uint)fhFST.BaseStream.Position;
// Save the ID and offset entry for the current ID
IdsAndOffsets.Add(curRecID,RtnVal);
fhFST.Write(curRecID);
fhFST.Write(elemParentID);
fhFST.Write(numgroups);
// write the FstTmp
for (int i=0; i < FstTmp.Count; i++)
{
tmpfststrc = (FstTmpSTRC)FstTmp[i];
tmpfststrc.Write(fhFST);
}
FstTmp.Clear();
return RtnVal;
}
public void WriteGraphicsReturnValue(string OrigStr)
{
string text, tmptext, hgttxt, widtxt, imgdateStr;
int idx;
int hgt, wid;
int imgdateInt;
byte newline = 10;
char[] tmpbuf = OrigStr.ToCharArray();
// remove the trailing "\r\n"
tmptext = OrigStr.Substring(0,OrigStr.Length-2);
// parse out the image width
idx = tmptext.LastIndexOf("\r\n");
widtxt = tmptext.Substring(idx+2,tmptext.Length-(idx+2));
wid = Convert.ToInt32(widtxt,10);
widtxt = wid.ToString("x4");
tmptext = tmptext.Substring(0,idx);
// parse out the image height
idx = tmptext.LastIndexOf("\r\n");
hgttxt = tmptext.Substring(idx+2,tmptext.Length-(idx+2));
hgt = Convert.ToInt32(hgttxt,10);
hgttxt = hgt.ToString("x4");
tmptext = tmptext.Substring(0,idx);
// parse out the image file name and image date
idx = tmptext.IndexOf(" ");
text = tmptext.Substring(idx+1);
if (tmptext.StartsWith("\r\n"))
imgdateStr = tmptext.Substring(2,idx-2); // first 2 chars are "\r\n"
else
{
if(idx < 1)
imgdateStr=null;
else
imgdateStr = tmptext.Substring(0,idx);
}
if (imgdateStr == null|| imgdateStr=="")
imgdateInt = 0;
else
imgdateInt = Convert.ToInt32(imgdateStr,10);
// write graphics file name
WriteString(text,false);
fhFST.Write(newline);
// write dummy date (old FST file had only zeros!
// WriteString("00000000",false);
WriteString(imgdateInt.ToString("x8"),false);
fhFST.Write(newline);
// write the image height
WriteString(hgttxt,false);
fhFST.Write(newline);
//write the image width
WriteString(widtxt,true);
}
private ushort SaveROToFST(XmlNode RONode,ArrayList InUseList,string RtnValTmplate, string AccPageIDTplate)
{
ushort RtnVal;
uint startFST = (uint)fhFST.BaseStream.Position;
uint RORecID;
uint ParID;
byte nullbyte=0;
VlnXmlElement elem;
elem = (VlnXmlElement) RONode;
// string dummy = ""; // need for RODB_GetFIeldsInUse call, won't be used.
// ArrayList AvailList, InUseList;
// //Get the "In Use" field list
// AvailList = ROdatabase.RODB_GetFields(elem, (uint) RecordType.Schema);
// InUseList = ROdatabase.RODB_GetFieldsInUse(elem, AvailList,"FieldsInUse", ref dummy);
//Write the RO's record ID
string RecIdStr = elem.GetAttribute("RecID");
RORecID = System.Convert.ToUInt32(RecIdStr,16);
fhFST.Write(RORecID);
// **** Debug
// if (RecIdStr.Equals("000000a6"))
// nullbyte=0;
// ***
// Get the Accessory Page ID
// string AccPageIDTplate = elem.GetAccPageIDTemplate();
string AccPageID = elem.GetAccPageIDString(AccPageIDTplate);
// **** Debug
// if (AccPageID.Equals("S:1"))
// nullbyte=0;
// *****
//Write the parent ID
string ParIDstr = elem.GetAttribute("ParentID");
ParID = System.Convert.ToUInt32(ParIDstr,16);
fhFST.Write(ParID);
// not sure why, was in old FST code but no comment!
// I assume that it's some sort of separater
short none = -1;
fhFST.Write(none);
//Get the RO Return value and return type
// string RtnValTmplate = elem.GetReturnValueTemplate();
RtnVal = 0;
string tablename = elem.GetAttribute("Table");
// if (RtnValTmplate.Equals("<Setpoint__Value>"))
// {
// int i;
// i =0;
// }
string cvttmp= CvtFldToUserFld(RtnValTmplate);
string RORtnVal = elem.GetReturnValue(ROdatabase,tablename,cvttmp,InUseList,ref RtnVal);
// Write the field type to the FST
fhFST.Write(RtnVal);
if (RtnVal == 8) // is this an Image (graphics) record?
WriteGraphicsReturnValue(RORtnVal);
else
WriteString(RORtnVal);
// Write the Accessory Page ID
// Fix for Bug B2003-039. Added check for a NULL AccPageID
// If is null, then assign a blank string
if (AccPageID != null)
AccPageID = AccPageID.Trim();
else
AccPageID = " ";
WriteString(AccPageID);
// Save the ID and offset entry for the current ID
IdsAndOffsets.Add(RORecID,startFST);
// Save the RecID and Accessory Page id
IdsAndAccPgIds[AccPageID] = RORecID;
// Save the widest AccPageID width
int acclen = AccPageID.Length;
if (acclen > widestAcPgId)
widestAcPgId = (ushort)acclen;
// if(dtLast.AddSeconds(.3) < DateTime.Now)
// {
StatusWin.StatMsg = AccPageID;
StatusWin.PerformStep();
// dtLast=DateTime.Now;
// }
return RtnVal;
}
public void WriteString(string str)
{
WriteString(str,true);
}
public void WriteString(string str,bool AddNull)
{
int n=str.Length;
if (AddNull)
n++;
byte [] b = new byte[n];
for(int i =0; i < str.Length; i++)
{
b[i] = (byte)str[i];
}
fhFST.Write(b,0,n);
}
}
}
BIN
View File
Binary file not shown.
@@ -1,492 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
namespace TestWndProc
{
public partial class MyPanel : UserControl
{
private bool _TextChanging=false;
private const int WM_NOTIFY = 0x4E;
public MyPanel()
{
InitializeComponent();
//RTBAPI.SetNotifyProtect(myRTB1);
//myRTB1.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}\r\n" +
// @"\viewkind4\uc1\pard\sl-240\slmult0\f0\fs20 " +
// @"\v <START]\v0 Not Protected Link\v #Link data including URL\v0 \v [END>\v0\par" +
// @"\v <START]\v0 30 gpm\v #Link Reference Object A.1[END>\v0\v <START]\v0 20 gpm\v #Link Reference Object A.2[END>\v0\par" +
// @"Not Protected\par " +
// @"Not Protected\par " +
// @"Not Protected\par " +
// @"Not Protected\par}";
// KBR's Testing for delete link basic cases (text before & after link):
//myRTB1.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}\r\n" +
// @"\viewkind4\uc1\pard\sl-240\slmult0\f0\fs20 " +
// @"Add some text before \v <START]\v0 Link at middle of box\v #Link data including URL\v0 \v [END>\v0 and some more text after}";
// KBR's Testing for delete link at beginning of box (BASIC CASE):
//myRTB1.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}\r\n" +
// @"\viewkind4\uc1\pard\sl-240\slmult0\f0\fs20 " +
// @"\v <START]\v0 Link at beginning of box\v #Link data including URL\v0 \v [END>\v0 and some more text after}";
// KBR's Testing for delete link with two links in a row:
myRTB1.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}\r\n" +
@"\viewkind4\uc1\pard\sl-240\slmult0\f0\fs20 " +
@"Add some text before \v <START]\v0 First Link in box\v #Link data including URL\v0 \v [END>\v0 "+
@"\v <START]\v0 Second Link in box\v #Link data including URL\v0 \v [END>\v0 and some more text after}";
// RHM's latest:
//myRTB1.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}\r\n" +
// @"\viewkind4\uc1\pard\sl-240\slmult0\f0\fs20 " +
// @"\v <START]\v0 Not Protected Link\v #Link data including URL\v0 \v [END>\v0\par" +
// @"\v <START]\v0 30 gpm\v #Link Reference Object A.1[END>\v0\v <START]\v0 20 gpm\v #Link Reference Object A.2[END>\v0\par" +
// @"Not Protected\par " +
// @"Make sure the flow is at \b least \v <START]\v0 40 GPM\v #Link data including URL\v0 \v [END>\v0 \b0 coming from the Aux Feed Pump\par " +
// @"Not Protected\par " +
// @"Not Protected\par}";
//myRTB1.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}{\colortbl{\red0\green0\blue0;\red255\green0\blue0}}\r\n" +
// @"\viewkind4\uc1\pard\sl-240\slmult0\f0\fs20 " +
// @"\cf1 Not Protected Link\v #Link data including URL\v0\par" +
// @"30 gpm\v #Link Reference Object A.1\v0 \cf1 20 gpm\v #Link Reference Object A.2\v0\par" +
// @"Not Protected\par " +
// @"Make sure the flow is at least \v <START]\v0 40 GPM\v #Link data including URL\v0 \v [END>\v0 coming from the Aux Feed Pump\par " +
// @"Not Protected\par " +
// @"Not Protected\par}";
//FindAllLinks();
this.myRTB1.SelectionChanged += new System.EventHandler(this.myRTB1_SelectionChanged);
}
private void myRTB1_Protected(object sender, EventArgs e)
{
MessageBox.Show("Cannot change protected text that way!");
}
private void btnBoldOn_Click(object sender, EventArgs e)
{
RTBAPI.ToggleBold(true, myRTB1, RTBAPI.RTBSelection.SCF_SELECTION);
}
private void btnBoldOff_Click(object sender, EventArgs e)
{
RTBAPI.ToggleBold(false, myRTB1, RTBAPI.RTBSelection.SCF_SELECTION);
}
private void myRTB1_TextChanged(object sender, EventArgs e)
{
if (_TextChanging == false)
{
_TextChanging = true;
tbRTF.Text = myRTB1.Rtf;
FindAllLinks();
ShowSelection();
_TextChanging = false;
}
}
private void ShowSelection()
{
lblFind.Text = string.Format("{0}-{1}", myRTB1.SelectionStart, myRTB1.SelectionStart + myRTB1.SelectionLength);
tbSelRTF.Text = myRTB1.SelectedRtf;
tbSelText.Text = myRTB1.SelectedText;
UpdateNudsFromSelection();
}
private void UpdateNudsFromSelection()
{
nudStart.Value = myRTB1.SelectionStart;
nudLength.Value = myRTB1.SelectionLength;
}
private void UpdateNuds(int start, int length)
{
nudStart.Value = start;
nudLength.Value = length;
}
private void btnLinkOn_Click(object sender, EventArgs e)
{
RTBAPI.Link(myRTB1);
}
private void btnLinkOff_Click(object sender, EventArgs e)
{
RTBAPI.UnLink(myRTB1);
}
private void btnProtectOn_Click(object sender, EventArgs e)
{
RTBAPI.Protect(myRTB1);
}
private void btnProtectOff_Click(object sender, EventArgs e)
{
RTBAPI.UnProtect(myRTB1);
}
private void SetSelection(int locStart, int locLength)
{
Application.DoEvents();
//myRTB1.SelectionStart = myRTB1.TextLength; // Pointing to the end forces the length to zero at the same time.
//myRTB1.SelectionStart = locStart;
//myRTB1.SelectionLength = locLength;
myRTB1.Select(locStart, locLength);
}
private void tbRTF_TextChanged(object sender, EventArgs e)
{
if (_TextChanging == false)
{
_TextChanging = true;
myRTB1.Rtf = tbRTF.Text;
_TextChanging = false;
}
}
private void UpdateSelectionFromNuds()
{
SetSelection((int)(nudStart.Value),(int)(nudLength.Value));
}
private void myRTB1_MouseUp(object sender, MouseEventArgs e)
{
_MouseDown = false;
HandleSelectionChange();
}
List<LinkLocation> _linkLocations;
private void btnFindAllLinks_Click(object sender, EventArgs e)
{
FindAllLinks();
}
private void FindAllLinks()
{
string str = myRTB1.Text;
_AdjustingSelection = true;
myRTB1.PushSelection();
_linkLocations = new List<LinkLocation>();
MatchCollection matches = Regex.Matches(str, "<START](.*?)[[]END>");
MatchCollection matchesRtf = Regex.Matches(myRTB1.Rtf, "<START](.*?)[[]END>");
for (int i = 0; i< matches.Count; i++) //each (Match match in matches)
{ //KBR
Match match = matches[i];
Match matchrtf = matchesRtf[i];
_linkLocations.Add(new LinkLocation(match.Index + 7, // If the [END> is immediately followed by <START] include it
match.Length - (((match.Index + match.Length + 7 <= str.Length) && (str.Substring(match.Index + match.Length, 7) == "<START]")) ? 0 : 7), match.Value, matchrtf.Index, matchrtf.Length));
} //KBR
foreach (LinkLocation ll in _linkLocations)
{
myRTB1.Select(ll.Start, ll.Length); // subtract off start token!
RTBAPI.CharFormatTwo charFormat = RTBAPI.GetCharFormat(myRTB1, RTBAPI.RTBSelection.SCF_SELECTION);
// Protect the link text to avoid manual changes
charFormat.dwMask = RTBAPI.CharFormatMasks.CFM_LINK; // | RTBAPI.CharFormatMasks.CFM_PROTECTED;
charFormat.dwEffects = RTBAPI.CharFormatEffects.CFE_LINK; // | RTBAPI.CharFormatEffects.CFE_PROTECTED;
RTBAPI.SetCharFormat(myRTB1, RTBAPI.RTBSelection.SCF_SELECTION, charFormat);
}
myRTB1.PopSelection();
LinkLocation llx = FindLinkLocation();
if (_CheckSelection)
{
if (llx != null) SetSelection(llx.End, 0);
_CheckSelection = false;
}
_AdjustingSelection = false;
myRTB1.Focus();
dgv.DataSource = _linkLocations;
}
private void dgv_SelectionChanged(object sender, EventArgs e)
{
if (dgv.SelectedRows.Count == 1)
{
LinkLocation ll = _linkLocations[dgv.SelectedRows[0].Index];
SetSelection(ll.Start,ll.Length);
}
}
bool _AdjustingSelection = false;
private void myRTB1_SelectionChanged(object sender, EventArgs e)
{
HandleSelectionChange();
}
private void HandleSelectionChange()
{
Console.WriteLine("CHECK MOUSE: Sel {0} Length {1}", myRTB1.SelectionStart, myRTB1.SelectionLength);
if (cbProcess.Checked)
{
// Can I limit cursor movement to the ranges of link locations
if (!_MouseDown && !_AdjustingSelection)
{
if (_linkLocations != null)
{
LinkLocation ll = FindLinkLocation();
//if (_CheckSelection)
//{
// //if (ll != null) SetSelection(ll.End, 0);
// _CheckSelection = false;
//}
LinkLocation llend = null;
if (myRTB1.SelectionLength!=0)
llend = FindLinkLocation(myRTB1.SelectionStart + myRTB1.SelectionLength-1);
if (ll != null)
{
Console.WriteLine("SELECTIONCHANGED: Sel {0}, Length {1}, Link Start {2}, Link Length {3}", myRTB1.SelectionStart, myRTB1.SelectionLength, ll.Start, ll.Length);
_AdjustingSelection = true;
if (myRTB1.SelectionStart == ll.Start && myRTB1.SelectionLength == 0)
{
// won't work between two links
SendKeys.Send("{LEFT}");
}
if (myRTB1.SelectionStart + myRTB1.SelectionLength > ll.End)
{
int end = myRTB1.SelectionStart + myRTB1.SelectionLength;
SetSelection(ll.Start, end - ll.Start);
}
else
{
SetSelection(ll.Start, ll.Length);
}
_AdjustingSelection = false;
}
else if (llend != null)
{
Console.WriteLine("LLEND: Sel {0}, Length {1}, Link Start {2}, Link Length {3}", myRTB1.SelectionStart, myRTB1.SelectionLength, llend.Start, llend.Length);
_AdjustingSelection = true;
SetSelection(myRTB1.SelectionStart, llend.End - myRTB1.SelectionStart);
_AdjustingSelection = false;
}
//else
//{
// if (myRTB1.SelectedText.EndsWith("<START]") && !myRTB1.SelectedText.EndsWith("[END><START]"))
// myRTB1.SelectionLength = myRTB1.SelectionLength - 7;
//}
}
}
}
ShowSelection();
UpdateNudsFromSelection();
}
private bool _CheckSelection = false;
int processingkeys = 0;
private void myRTB1_KeyDown(object sender, KeyEventArgs e)
{
if (processingkeys > 0)
Console.WriteLine("Key down: {0} processing keys = {1}", e.KeyCode, processingkeys);
if (!cbProcess.Checked) return;
//Console.WriteLine("{0}", e.KeyCode);
switch (e.KeyCode)
{
case Keys.Left:
LinkLocation ll = FindLinkSelected();
if (ll != null)
{
_AdjustingSelection = true;
Console.WriteLine("Adjusting SelectionStart {0} to {1}", myRTB1.SelectionStart, ll.Start - 7);
SetSelection(ll.Start - 7, 0);
_AdjustingSelection = false;
// Does not allow you to stop between two links that are right next to
// each other
if (myRTB1.SelectionStart != ll.Start - 7)
{
Console.WriteLine(" Didn't work - SelectionStart {0}", myRTB1.SelectionStart);
//ll = FindLinkLocation(myRTB1.SelectionStart);
//SetSelection(ll.Start, ll.Length);
SetSelection(ll.Start, 0);
}
e.SuppressKeyPress = true;
}
break;
case Keys.Back:
_CheckSelection = true;
break;
case Keys.Delete:
//if (myRTB1.SelectionLength == 0)
//{
// e.SuppressKeyPress = true;
// SendKeys.Send("{RIGHT}{BS}");
//} else
if (myRTB1.SelectedText.EndsWith(@"[END><START]"))
{
DoDeleteEndBetweenLinks();
e.SuppressKeyPress = true;
}
else
{
myRTB1.SelectedText = "X";
SendKeys.Send("{BS}");
e.SuppressKeyPress = true;
}
break;
}
}
private void DebugPrint(string where, string format, params object[] myParams)
{
Application.DoEvents();
Console.WriteLine(where + string.Format(format, myParams));
}
private void DebugSelection(string where)
{
DebugPrint(where, ": {0} {1} {2}", myRTB1.SelectionStart, myRTB1.SelectionLength, myRTB1.SelectedText);
}
private void RtbSendKeys(string keys)
{
SendKeys.Send(keys);
DebugSelection(keys);
}
private void DoDeleteEndBetweenLinks()
{
processingkeys++;
DebugSelection("Beginning");
int sstart = myRTB1.SelectionStart;
RtbSendKeys("{RIGHT} "); // open for space between links which separates END/START tokens
SetSelection(sstart, myRTB1.SelectionStart - sstart - 1); // 1 is accounting for typed space
DebugSelection("SetSelection");
RtbSendKeys("{DELETE}"); // deletes text including link
RtbSendKeys("{RIGHT}{BS}"); // deletes space that was added
processingkeys--;
}
private void DoDeleteStartBetweenLinks()
{
processingkeys++;
int slen = myRTB1.SelectionLength;
RtbSendKeys("{LEFT} ");
SetSelection(myRTB1.SelectionStart, slen + 7);
RtbSendKeys("{DELETE}");
RtbSendKeys("{BS}");
processingkeys--;
}
private LinkLocation FindLinkSelected()
{
if (_linkLocations == null) return null;
foreach (LinkLocation ll in _linkLocations)
if (ll.Start == myRTB1.SelectionStart && ll.Length == myRTB1.SelectionLength) return ll;
return null;
}
private LinkLocation FindLinkLocation()
{
return FindLinkLocation(myRTB1.SelectionStart);
}
private LinkLocation FindLinkLocation(int sel)
{
if (_linkLocations == null) return null;
int lastend = -1;
foreach (LinkLocation ll in _linkLocations)
{
// Moving right:
// if less than, allows stopping between two links
// if less than or equal, does not stop between two links
if (ll.Start < sel && ll.End > sel) return ll;
//if (ll.Start == lastend && ll.Start < sel && ll.End > sel) return ll;
if (ll.Start != lastend && ll.Start <= sel && ll.End > sel) return ll;
lastend = ll.End;
}
return null;
}
private bool _MouseDown = false;
private void myRTB1_MouseDown(object sender, MouseEventArgs e)
{
_MouseDown = true;
}
private void btnUpdateSel_Click(object sender, EventArgs e)
{
UpdateSelectionFromNuds();
myRTB1.Focus();
}
private void myRTB1_KeyPress(object sender, KeyPressEventArgs e)
{
Console.WriteLine("KeyPress: {0},{1}", e.KeyChar, (int)e.KeyChar);
if (e.KeyChar >= ' ')
{
LinkLocation ll = FindBetweenLinks();
if (ll != null&&myRTB1.SelectionLength==0)
{
myRTB1.Rtf = myRTB1.Rtf.Substring(0, ll.StartRtf) + @"\v0 " + e.KeyChar.ToString() + @"\v " + myRTB1.Rtf.Substring(ll.StartRtf);
e.Handled = true;
myRTB1.SelectionStart = ll.Start - 6; // account for <START] - 1 for the character typed
}
else if (ll != null)
{
DoDeleteStartBetweenLinks();
}
else if (myRTB1.SelectedText.EndsWith(@"[END><START]"))
{
DoDeleteEndBetweenLinks();
}
}
}
private LinkLocation FindBetweenLinks()
{
bool lastend = false;
foreach (LinkLocation ll in _linkLocations)
{
if (ll.End == myRTB1.SelectionStart) lastend = true;
if (ll.Start == myRTB1.SelectionStart && lastend) return ll;
}
return null;
}
private void tbRTB_SelectionChanged(object sender, EventArgs e)
{
//lbTbSel.Text = string.Format("{0}, {1}", tbRTF.SelectionStart, tbRTF.SelectionLength);
}
private void btnRefreshText_Click(object sender, EventArgs e)
{
myRTB1.Rtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Arial;}}\r\n" +
@"\viewkind4\uc1\pard\sl-240\slmult0\f0\fs20 " +
@"Add some text before \v <START]\v0 First Link in box\v #Link data including URL\v0 \v [END>\v0 " +
@"\v <START]\v0 Second Link in box\v #Link data including URL\v0 \v [END>\v0 and some more text after}";
}
private void tbRTF_SelectionChange(object sender, EventArgs e)
{
lbTbSel.Text = string.Format("{0}, {1}", tbRTF.SelectionStart, tbRTF.SelectionLength);
}
}
public class LinkLocation
{
private int _Start;
public int Start
{
get { return _Start; }
set { _Start = value; }
}
private int _Length;
public int Length
{
get { return _Length; }
set { _Length = value; }
}
public int End
{
get { return _Length + _Start; }
}
private int _StartRtf;
public int StartRtf
{
get { return _StartRtf; }
set { _StartRtf = value; }
}
private int _LengthRtf;
public int LengthRtf
{
get { return _LengthRtf; }
set { _LengthRtf = value; }
}
public int EndRtf
{
get { return _LengthRtf + _StartRtf; }
}
private string _Text;
public string Text
{
get { return _Text; }
set { _Text = value; }
}
public LinkLocation(int start, int length, string text, int startRtf, int lengthRtf)
{
_Start = start;
_Length = length;
_Text = text;
_StartRtf = startRtf;
_LengthRtf = lengthRtf;
}
}
}
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
SELECT FormatID,20000+T.C.value('@Index','int') AS MyType
, T.C.value('@Type','varchar(255)') AS MyType
, T.C.value('(StepEditData/TypeMenu/@MenuItem)[1]','varchar(255)') AS MyMenuItem
,T.C.value('@ParentType','varchar(255)') AS MyParentType
FROM Formats
Cross Apply Data.nodes('/PlantFormat/FormatData/StepData/Step') T(C)
where formatid = 79
@@ -1,6 +0,0 @@
use VEPROMS
set nocount on
select contentid, cast(text as varchar(50)) from contents where contentid = 1140
select itemid from items where contentid = 1140
select TOId, RangeID from transitions where fromid = 1140
select roid from rousages where contentid = 1140
-20
View File
@@ -1,20 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VEPROMS", "VEPROMS.csproj", "{673A8C41-BDEE-4278-B6E3-57DE8B7D9CEF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{673A8C41-BDEE-4278-B6E3-57DE8B7D9CEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{673A8C41-BDEE-4278-B6E3-57DE8B7D9CEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{673A8C41-BDEE-4278-B6E3-57DE8B7D9CEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{673A8C41-BDEE-4278-B6E3-57DE8B7D9CEF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file not shown.
@@ -1,129 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5938BB0C-611D-4BE2-A21D-459D9C9B63C5}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TestFullLoad</RootNamespace>
<AssemblyName>TestFullLoad</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<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' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Demo|AnyCPU' ">
<OutputPath>bin\Demo\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Demo|x86' ">
<OutputPath>bin\Demo\</OutputPath>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="Csla, Version=2.1.4.0, Culture=neutral, PublicKeyToken=93be5fdc093e4c30, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\VEPROMS User Interface\bin\Debug\Csla.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>F:\Log4Net\log4net-1.2.10\bin\net\2.0\release\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<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="frmTestLoadAtOnce.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmTestLoadAtOnce.Designer.cs">
<DependentUpon>frmTestLoadAtOnce.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="frmTestLoadAtOnce.resx">
<SubType>Designer</SubType>
<DependentUpon>frmTestLoadAtOnce.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>
<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>
<ProjectReference Include="..\..\DropDownPanel\DropDownPanel.csproj">
<Project>{34ADDF19-CBBA-4A11-BC99-D141BA2D29EC}</Project>
<Name>DropDownPanel</Name>
</ProjectReference>
<ProjectReference Include="..\..\TablePicker\TablePicker.csproj">
<Project>{23DECB23-7CEA-433E-88BD-67DA7689B89E}</Project>
<Name>TablePicker</Name>
</ProjectReference>
<ProjectReference Include="..\..\VEPROMS.CSLA.Library\VEPROMS.CSLA.Library.csproj">
<Project>{41B2D786-1C03-4C1A-9247-DA9F0D6B06D5}</Project>
<Name>VEPROMS.CSLA.Library</Name>
</ProjectReference>
<ProjectReference Include="..\..\Volian.Controls.Library\Volian.Controls.Library.csproj">
<Project>{8556527C-6615-487F-8AF7-22EBC3EF0268}</Project>
<Name>Volian.Controls.Library</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\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>
@@ -1,189 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5731EEAD-30C9-499F-849E-179F11D932B0}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PrintMSWord</RootNamespace>
<AssemblyName>PrintMSWord</AssemblyName>
<StartupObject>
</StartupObject>
<SccProjectName>"%24/PROMS/VEPROMS", ZWBAAAAA</SccProjectName>
<SccLocalPath>..</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>MSSCCI:Microsoft Visual SourceSafe</SccProvider>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="Csla">
<HintPath>..\..\VEPROMS.CSLA.Library\bin\Debug\Csla.dll</HintPath>
</Reference>
<Reference Include="DevComponents.DotNetBar2, Version=10.9.0.13, Culture=neutral, PublicKeyToken=7eb7c3a35b91de04, processorArchitecture=MSIL" />
<Reference Include="log4net">
<HintPath>..\..\VEPROMS User Interface\bin\Debug\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="frmPrintMsWord.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmPrintMsWord.Designer.cs">
<DependentUpon>frmPrintMsWord.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmPrintMsWord.resx">
<SubType>Designer</SubType>
<DependentUpon>frmPrintMsWord.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>
<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>
<ProjectReference Include="..\..\LBWordLibrary\LBWordLibrary.csproj">
<Project>{70F23722-19A3-4AC1-A900-55831C945786}</Project>
<Name>LBWordLibrary</Name>
</ProjectReference>
<ProjectReference Include="..\..\VEPROMS.CSLA.Library\VEPROMS.CSLA.Library.csproj">
<Project>{41B2D786-1C03-4C1A-9247-DA9F0D6B06D5}</Project>
<Name>VEPROMS.CSLA.Library</Name>
</ProjectReference>
<ProjectReference Include="..\..\VG\VG.csproj">
<Project>{52D74078-3822-410E-889B-464BD21AAB9E}</Project>
<Name>VG</Name>
</ProjectReference>
<ProjectReference Include="..\..\Volian.Base.Library\Volian.Base.Library.csproj">
<Project>{AEEE9FD1-6892-45E2-A67E-418C06D46FF9}</Project>
<Name>Volian.Base.Library</Name>
</ProjectReference>
<ProjectReference Include="..\..\Volian.Controls.Library\Volian.Controls.Library.csproj">
<Project>{8556527C-6615-487F-8AF7-22EBC3EF0268}</Project>
<Name>Volian.Controls.Library</Name>
</ProjectReference>
<ProjectReference Include="..\..\Volian.Print.Library\Volian.Print.Library.csproj">
<Project>{94830C07-6A3A-450E-9674-C9B4293A7726}</Project>
<Name>Volian.Print.Library</Name>
</ProjectReference>
<ProjectReference Include="..\..\Volian.Svg.Library\Volian.Svg.Library.csproj">
<Project>{293911B5-C602-483F-A97F-F962EEFB3CAE}</Project>
<Name>Volian.Svg.Library</Name>
</ProjectReference>
<ProjectReference Include="..\..\XYPlots\XYPlots.csproj">
<Project>{04E168D0-9CC7-43D9-A9F1-93E481EA86A3}</Project>
<Name>XYPlots</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\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>
BIN
View File
Binary file not shown.
@@ -1 +0,0 @@
C1.Win.C1FlexGrid.C1FlexGrid, C1.Win.C1FlexGrid.2, Version=2.0.20162.188, Culture=neutral, PublicKeyToken=79882d576c6336da
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-597
View File
@@ -1,597 +0,0 @@
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
namespace fmtxml
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnCvtPagDoc;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnExit;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Button btnCvtGenmac;
private System.Windows.Forms.Button btnCvtXmlToSVG;
//private C1.C1Pdf.C1PdfDocument c1PdfDocument1;
private Button btnCvtFormat;
private Button btnMergeFmtPagDoc;
private Label lblPathFmt;
private Button btnBrowseFmt;
private TextBox tbFmtPath;
private TextBox tbGenmacPath;
private Button btnBrowseGenmac;
private Label lblPathGenmac;
private Label lblResult;
private TextBox tbResultPath;
private Button btnBrowseResult;
private StatusStrip statusStrip1;
private ToolStripStatusLabel tsslStatus;
private Button btnRtfToSvg;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
tbFmtPath.Text = @"c:\16bit\ve-proms\format";
tbGenmacPath.Text = @"C:\16bit\promsnt\genmac";
tbResultPath.Text = @"c:\development\";
//
// TODO: Add any constructor code after InitializeComponent call
//
}
public string MyStatus
{
get { return tsslStatus.Text; }
set { tsslStatus.Text = value; Application.DoEvents(); }
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (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.btnCvtPagDoc = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.btnExit = new System.Windows.Forms.Button();
this.listBox1 = new System.Windows.Forms.ListBox();
this.btnCvtGenmac = new System.Windows.Forms.Button();
this.btnCvtXmlToSVG = new System.Windows.Forms.Button();
this.btnCvtFormat = new System.Windows.Forms.Button();
this.btnMergeFmtPagDoc = new System.Windows.Forms.Button();
this.lblPathFmt = new System.Windows.Forms.Label();
this.btnBrowseFmt = new System.Windows.Forms.Button();
this.tbFmtPath = new System.Windows.Forms.TextBox();
this.tbGenmacPath = new System.Windows.Forms.TextBox();
this.btnBrowseGenmac = new System.Windows.Forms.Button();
this.lblPathGenmac = new System.Windows.Forms.Label();
this.lblResult = new System.Windows.Forms.Label();
this.tbResultPath = new System.Windows.Forms.TextBox();
this.btnBrowseResult = new System.Windows.Forms.Button();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel();
this.btnRtfToSvg = new System.Windows.Forms.Button();
this.statusStrip1.SuspendLayout();
this.SuspendLayout();
//
// btnCvtPagDoc
//
this.btnCvtPagDoc.Location = new System.Drawing.Point(217, 63);
this.btnCvtPagDoc.Name = "btnCvtPagDoc";
this.btnCvtPagDoc.Size = new System.Drawing.Size(201, 51);
this.btnCvtPagDoc.TabIndex = 0;
this.btnCvtPagDoc.Text = "Convert Page and Doc Styles in format directory (Step 2)";
this.btnCvtPagDoc.Click += new System.EventHandler(this.btnCvtPagDoc_Click);
//
// label1
//
this.label1.Location = new System.Drawing.Point(12, 237);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(200, 18);
this.label1.TabIndex = 1;
this.label1.Text = "Converted:";
//
// btnExit
//
this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnExit.Location = new System.Drawing.Point(560, 224);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(63, 28);
this.btnExit.TabIndex = 2;
this.btnExit.Text = "Exit";
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
//
// listBox1
//
this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listBox1.ItemHeight = 16;
this.listBox1.Location = new System.Drawing.Point(10, 258);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(613, 212);
this.listBox1.TabIndex = 3;
//
// btnCvtGenmac
//
this.btnCvtGenmac.Enabled = false;
this.btnCvtGenmac.Location = new System.Drawing.Point(10, 172);
this.btnCvtGenmac.Name = "btnCvtGenmac";
this.btnCvtGenmac.Size = new System.Drawing.Size(183, 46);
this.btnCvtGenmac.TabIndex = 4;
this.btnCvtGenmac.Text = "Convert genmac files to XML (Genmac Step 1)";
this.btnCvtGenmac.Click += new System.EventHandler(this.btnCvtGenmac_Click);
//
// btnCvtXmlToSVG
//
this.btnCvtXmlToSVG.Enabled = false;
this.btnCvtXmlToSVG.Location = new System.Drawing.Point(199, 170);
this.btnCvtXmlToSVG.Name = "btnCvtXmlToSVG";
this.btnCvtXmlToSVG.Size = new System.Drawing.Size(183, 50);
this.btnCvtXmlToSVG.TabIndex = 5;
this.btnCvtXmlToSVG.Text = "Convert Genmac_XML to SVG (Genmac Step 2)";
this.btnCvtXmlToSVG.Click += new System.EventHandler(this.btnCvtXmlToSVG_Click);
//
// btnCvtFormat
//
this.btnCvtFormat.Location = new System.Drawing.Point(10, 63);
this.btnCvtFormat.Name = "btnCvtFormat";
this.btnCvtFormat.Size = new System.Drawing.Size(201, 51);
this.btnCvtFormat.TabIndex = 8;
this.btnCvtFormat.Text = "Convert Format in format directory (Step 1)";
this.btnCvtFormat.UseVisualStyleBackColor = true;
this.btnCvtFormat.Click += new System.EventHandler(this.btnCvtFormat_Click);
//
// btnMergeFmtPagDoc
//
this.btnMergeFmtPagDoc.Location = new System.Drawing.Point(424, 63);
this.btnMergeFmtPagDoc.Name = "btnMergeFmtPagDoc";
this.btnMergeFmtPagDoc.Size = new System.Drawing.Size(201, 51);
this.btnMergeFmtPagDoc.TabIndex = 9;
this.btnMergeFmtPagDoc.Text = "Integrate Fmt, Doc & Pag to single xml (Step 3)";
this.btnMergeFmtPagDoc.UseVisualStyleBackColor = true;
this.btnMergeFmtPagDoc.Click += new System.EventHandler(this.btnMergeFmtPagDoc_Click);
//
// lblPathFmt
//
this.lblPathFmt.AutoSize = true;
this.lblPathFmt.Location = new System.Drawing.Point(7, 42);
this.lblPathFmt.Name = "lblPathFmt";
this.lblPathFmt.Size = new System.Drawing.Size(139, 17);
this.lblPathFmt.TabIndex = 10;
this.lblPathFmt.Text = "Path To Format Files";
//
// btnBrowseFmt
//
this.btnBrowseFmt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnBrowseFmt.Location = new System.Drawing.Point(476, 36);
this.btnBrowseFmt.Name = "btnBrowseFmt";
this.btnBrowseFmt.Size = new System.Drawing.Size(153, 23);
this.btnBrowseFmt.TabIndex = 11;
this.btnBrowseFmt.Text = "Browse (Format)";
this.btnBrowseFmt.UseVisualStyleBackColor = true;
this.btnBrowseFmt.Click += new System.EventHandler(this.btnBrowseFmt_Click);
//
// tbFmtPath
//
this.tbFmtPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbFmtPath.Location = new System.Drawing.Point(155, 37);
this.tbFmtPath.Name = "tbFmtPath";
this.tbFmtPath.Size = new System.Drawing.Size(303, 22);
this.tbFmtPath.TabIndex = 12;
//
// tbGenmacPath
//
this.tbGenmacPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbGenmacPath.Enabled = false;
this.tbGenmacPath.Location = new System.Drawing.Point(155, 144);
this.tbGenmacPath.Name = "tbGenmacPath";
this.tbGenmacPath.Size = new System.Drawing.Size(303, 22);
this.tbGenmacPath.TabIndex = 15;
//
// btnBrowseGenmac
//
this.btnBrowseGenmac.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnBrowseGenmac.Enabled = false;
this.btnBrowseGenmac.Location = new System.Drawing.Point(476, 143);
this.btnBrowseGenmac.Name = "btnBrowseGenmac";
this.btnBrowseGenmac.Size = new System.Drawing.Size(153, 23);
this.btnBrowseGenmac.TabIndex = 14;
this.btnBrowseGenmac.Text = "Browse (Genmac)";
this.btnBrowseGenmac.UseVisualStyleBackColor = true;
this.btnBrowseGenmac.Click += new System.EventHandler(this.btnBrowseGenmac_Click);
//
// lblPathGenmac
//
this.lblPathGenmac.AutoSize = true;
this.lblPathGenmac.Enabled = false;
this.lblPathGenmac.Location = new System.Drawing.Point(7, 149);
this.lblPathGenmac.Name = "lblPathGenmac";
this.lblPathGenmac.Size = new System.Drawing.Size(148, 17);
this.lblPathGenmac.TabIndex = 13;
this.lblPathGenmac.Text = "Path To Genmac Files";
//
// lblResult
//
this.lblResult.AutoSize = true;
this.lblResult.Location = new System.Drawing.Point(16, 10);
this.lblResult.Name = "lblResult";
this.lblResult.Size = new System.Drawing.Size(163, 17);
this.lblResult.TabIndex = 16;
this.lblResult.Text = "Path To Result Directory";
//
// tbResultPath
//
this.tbResultPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tbResultPath.Location = new System.Drawing.Point(185, 8);
this.tbResultPath.Name = "tbResultPath";
this.tbResultPath.Size = new System.Drawing.Size(273, 22);
this.tbResultPath.TabIndex = 17;
//
// btnBrowseResult
//
this.btnBrowseResult.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnBrowseResult.Location = new System.Drawing.Point(476, 3);
this.btnBrowseResult.Name = "btnBrowseResult";
this.btnBrowseResult.Size = new System.Drawing.Size(153, 24);
this.btnBrowseResult.TabIndex = 18;
this.btnBrowseResult.Text = "Browse (Result)";
this.btnBrowseResult.UseVisualStyleBackColor = true;
this.btnBrowseResult.Click += new System.EventHandler(this.btnBrowseResult_Click);
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsslStatus});
this.statusStrip1.Location = new System.Drawing.Point(0, 545);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(631, 25);
this.statusStrip1.TabIndex = 19;
this.statusStrip1.Text = "statusStrip1";
//
// tsslStatus
//
this.tsslStatus.Name = "tsslStatus";
this.tsslStatus.Size = new System.Drawing.Size(50, 20);
this.tsslStatus.Text = "Ready";
//
// btnRtfToSvg
//
this.btnRtfToSvg.Location = new System.Drawing.Point(424, 167);
this.btnRtfToSvg.Name = "btnRtfToSvg";
this.btnRtfToSvg.Size = new System.Drawing.Size(182, 51);
this.btnRtfToSvg.TabIndex = 20;
this.btnRtfToSvg.Text = "Convert Genmac RTF to SVG (GenMac One Step)";
this.btnRtfToSvg.Click += new System.EventHandler(this.btnRtfToSvg_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(631, 570);
this.Controls.Add(this.btnRtfToSvg);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.btnBrowseResult);
this.Controls.Add(this.tbResultPath);
this.Controls.Add(this.lblResult);
this.Controls.Add(this.tbGenmacPath);
this.Controls.Add(this.btnBrowseGenmac);
this.Controls.Add(this.lblPathGenmac);
this.Controls.Add(this.tbFmtPath);
this.Controls.Add(this.btnBrowseFmt);
this.Controls.Add(this.lblPathFmt);
this.Controls.Add(this.btnMergeFmtPagDoc);
this.Controls.Add(this.btnCvtFormat);
this.Controls.Add(this.btnCvtXmlToSVG);
this.Controls.Add(this.btnCvtGenmac);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.btnExit);
this.Controls.Add(this.label1);
this.Controls.Add(this.btnCvtPagDoc);
this.Name = "Form1";
this.Text = "Form1";
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private static string[] _ExcludeList = "ANO,ATA,ATLAS,LPL,MYA,NAE,NAI,NAS,PAC,RBN,SCE,SRS,VP,WPF,YAE".Split(",".ToCharArray());
public static bool Excluded(FileInfo fi)
{
foreach (string prefix in _ExcludeList)
if (fi.Name.ToUpper().StartsWith(prefix)) return true;
return false;
}
private void btnCvtPagDoc_Click(object sender, System.EventArgs e)
{
CleanupDestinationFolder("*p.xml");
CleanupDestinationFolder("*d.xml");
// get all of the files in the e:\ve-proms\format directory.
DirectoryInfo di = new DirectoryInfo(tbFmtPath.Text); // "C:\\16bit\\ve-proms\\format");
FileInfo[] fis = di.GetFiles("*.pag");
ClearListBox();
foreach (FileInfo fi in fis)
{
if (!Excluded(fi))
{
string fn = fi.Name.Substring(0, fi.Name.Length - 4);
AddFileToListBox(fi);
FmtToXml fx = new FmtToXml(fn, tbFmtPath.Text);
}
}
fis = di.GetFiles("*.z*");
foreach (FileInfo fi in fis)
{
if (!Excluded(fi))
{
AddFileToListBox(fi);
FmtToXml fx = new FmtToXml(fi.Name, tbFmtPath.Text);
}
}
MessageBox.Show("DONE Converting Page and Document Styles to XML");
}
private void AddFileToListBox(FileInfo fi)
{
this.listBox1.Items.Add(fi.Name);
this.listBox1.SelectedIndex = this.listBox1.Items.Count - 1;
MyStatus = "Processing " + fi.Name;
Application.DoEvents();
}
private void ClearListBox()
{
listBox1.Items.Clear();
}
private void btnExit_Click(object sender, System.EventArgs e)
{
Application.Exit();
}
private void btnCvtGenmac_Click(object sender, System.EventArgs e)
{
// before doing the genmac change, use cpp -DRTF file after genmac.h
// has been emptied out on files in \promsnt\genmac. This creates
// precompiled files only, i.e. gets rid of some of the junk in the files.
// This conversion is done 1 time. After 32-bit print is done, the xml
// files will be used rather than the genmac.
DirectoryInfo di = new DirectoryInfo(tbGenmacPath.Text + @"\preproc"); // "C:\\16bit\\promsnt\\genmac\\preproc");
FileInfo[] fis = di.GetFiles("*.i");
ClearListBox();
foreach (FileInfo fi in fis)
{
// results go to e:\\proms.net\\genmac.xml\\convert
if (!Excluded(fi))
{
AddFileToListBox(fi);
GenToXml gn = new GenToXml(fi.Name, tbGenmacPath.Text, tbResultPath.Text);
}
}
MessageBox.Show("DONE Converting genmacs to XML - Results are in " + tbResultPath.Text + @"\genmacall\convert");
}
private void btnCvtXmlToSVG_Click(object sender, System.EventArgs e)
{
// delete current svg's
DirectoryInfo disvg = new DirectoryInfo(tbResultPath.Text + @"\genmacall"); //(@"C:\development\proms.net\genmac.xml");
FileInfo[] fissvg = disvg.GetFiles("*.svg");
foreach (FileInfo fi in fissvg)fi.Delete();
DirectoryInfo di = new DirectoryInfo(tbResultPath.Text + @"\genmacall\convert");
FileInfo[] fis = di.GetFiles("*.xml");
ClearListBox();
foreach (FileInfo fi in fis)
{
// results go to e:\proms.net\genmac.xml
AddFileToListBox(fi);
GenXmlToSvg gn = new GenXmlToSvg(fi.Name, tbResultPath.Text);
}
MessageBox.Show("DONE Converting genmacs.xmls to drawing svg - Results are in " + tbResultPath.Text + @"\genmacall");
}
private void btnCvtFormat_Click(object sender, EventArgs e)
{
CleanupDestinationFolder("*f.xml");
DateTime tStart = DateTime.Now;
// first convert base format - for now use genfmt.
MyStatus = "Processing Base";
FmtFileToXml gx = new FmtFileToXml(null, "BASE", "GEN", tbFmtPath.Text); // Create BASE from GEN format
// get all of the format files in the e:\ve-proms\format directory.
DirectoryInfo di = new DirectoryInfo(tbFmtPath.Text); // "C:\\16bit\\ve-proms\\format");
//DirectoryInfo di = new DirectoryInfo("E:\\proms.net\\exe\\fmtxml");
// This excludes Background format files *.BFM which use a different structure
FileInfo[] fis = di.GetFiles("*.fmt");
ClearListBox();
foreach (FileInfo fi in fis)
{
if (!Excluded(fi))
{
string fn = fi.Name.Substring(0, fi.Name.Length - 4);
if (fn.ToLower() != "base")
{
AddFileToListBox(fi);
FmtFileToXml fx = new FmtFileToXml(gx, fn, fn, tbFmtPath.Text);
}
}
}
MyStatus = string.Format("DONE Converting Formats to XML {0:F3} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds);
MessageBox.Show("DONE Converting Formats to XML");
}
private void CleanupDestinationFolder(string pattern)
{
DirectoryInfo di = new DirectoryInfo("fmt_xml");
if (di.Exists == false)
di.Create();
FileInfo[] fis = di.GetFiles(pattern);
foreach (FileInfo fi in fis) fi.Delete();
}
private void btnMergeFmtPagDoc_Click(object sender, EventArgs e)
{
ClearResults(tbResultPath.Text);
DateTime tStart = DateTime.Now;
MyStatus = "Merging...";
// get all of the generated xml format files in the fmt_xml directory and merge
// the fmt/doc/pag & subformats into one file.
DirectoryInfo di = new DirectoryInfo("fmt_xml");
//testDirectoryInfo di = new DirectoryInfo("E:\\proms.net\\exe\\fmtxml");
FileInfo[] fis = di.GetFiles("*f.xml");
ClearListBox();
foreach (FileInfo fi in fis)
{
// see if all three, format, doc & pag exist - if not, print error,
// if so, process
string docname = "fmt_xml\\" + fi.Name.Substring(0, fi.Name.Length - 5) + "p.xml";
string pagname = "fmt_xml\\" + fi.Name.Substring(0, fi.Name.Length - 5) + "d.xml";
if (File.Exists(docname) && File.Exists(pagname))
{
AddFileToListBox(fi);
EntireFormat ef = new EntireFormat("fmt_xml\\" + fi.Name, tbResultPath.Text);
}
else
Console.WriteLine("For {0}, page or document file does not exist.", fi.Name);
}
MyStatus = string.Format("DONE Merging Formats {0:F3} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds);
MessageBox.Show("DONE Merging Formats - Results are in " + tbResultPath.Text + @"fmtall'");
}
private void ClearResults(string path)
{
DirectoryInfo di = new DirectoryInfo(path);
if (di.Exists == false) return;
di = di.GetDirectories("fmtall")[0];
FileInfo[] fis = di.GetFiles("*.xml");
foreach (FileInfo fi in fis)
fi.Delete();
}
private void btnBrowseFmt_Click(object sender, EventArgs e)
{
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.SelectedPath = tbFmtPath.Text;
if (fbd.ShowDialog() == DialogResult.OK)
if (Directory.Exists(fbd.SelectedPath)) tbFmtPath.Text = fbd.SelectedPath;
}
private void btnBrowseGenmac_Click(object sender, EventArgs e)
{
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.SelectedPath = tbFmtPath.Text;
if (fbd.ShowDialog() == DialogResult.OK)
{
if (Directory.Exists(fbd.SelectedPath)) tbGenmacPath.Text = fbd.SelectedPath;
}
}
private void btnBrowseResult_Click(object sender, EventArgs e)
{
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.SelectedPath = tbResultPath.Text;
if (fbd.ShowDialog() == DialogResult.OK)
{
if (Directory.Exists(fbd.SelectedPath)) tbResultPath.Text = fbd.SelectedPath;
}
}
private void btnRtfToSvg_Click(object sender, EventArgs e)
{
// delete current svg's
DirectoryInfo disvg = new DirectoryInfo(tbResultPath.Text + @"\genmacall"); //(@"C:\development\proms.net\genmac.xml");
FileInfo[] fissvg = disvg.GetFiles("*.svg");
foreach (FileInfo fi in fissvg) fi.Delete();
DirectoryInfo di = new DirectoryInfo(tbFmtPath.Text);
FileInfo[] fis = di.GetFiles("*.rtf");
ClearListBox();
foreach (FileInfo fi in fis)
{
if (!Excluded(fi))
{
// results go to e:\proms.net\genmac.xml
AddFileToListBox(fi);
RtfToSvg myConvert = new RtfToSvg(fi);
if (myConvert.IsGenMac)
myConvert.Save(tbResultPath.Text + @"genmacall\" + fi.Name.ToLower().Replace(".rtf", ".svg"));
}
}
MessageBox.Show("DONE converting GenMac RTF files to drawing svg - Results are in " + tbResultPath.Text + @"genmacall");
}
// old code:
//private void button5_Click(object sender, System.EventArgs e)
//{
// DirectoryInfo di = new DirectoryInfo("C:\\16bit\\ve-proms.net\\genmac.xml");
// FileInfo[] fis = di.GetFiles("*.xml");
// listBox1.Items.Clear();
// foreach (FileInfo fi in fis)
// {
// this.listBox1.Items.Add(fi.Name);
// //XmlToPdf pdf = new XmlToPdf("C:\\16bit\\ve-proms.net\\genmac.xml",fi.Name);
// }
// MessageBox.Show("DONE generating PDF files from XML");
//}
//private void button6_Click(object sender, System.EventArgs e)
//{
// DirectoryInfo di = new DirectoryInfo("C:\\16bit\\proms.net\\genmac.xml");
// FileInfo[] fis = di.GetFiles("*.svg");
// listBox1.Items.Clear();
// foreach (FileInfo fi in fis)
// {
// this.listBox1.Items.Add(fi.Name);
// //SvgToPdf pdf = new SvgToPdf("C:\\16bit\\proms.net\\genmac.xml", fi.Name);
// }
// MessageBox.Show("DONE generating PDF files from SVG");
//}
}
}
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
-3
View File
@@ -1,3 +0,0 @@
copy c:\development\proms\fmtxml\wst1.xml c:\development\fmtall\
copy c:\development\proms\fmtxml\wst2.xml c:\development\fmtall\
pause
Binary file not shown.
-207
View File
@@ -1,207 +0,0 @@
----------------------------------------
Find 'usemeta' (false by default) - format flag on section
C:\Development\fmtall\BGEALNall.xml(12):
C:\Development\fmtall\BGEEOPall.xml(18):
C:\Development\fmtall\BGEOIall.xml(32):
C:\Development\fmtall\BGESTPall.xml(30):
C:\Development\fmtall\CAL1all.xml':
C:\Development\fmtall\CATall.xml':
C:\Development\fmtall\CATBOXall.xml(17):
C:\Development\fmtall\FNPall.xml(28):
C:\Development\fmtall\GPCAall.xml(17):
C:\Development\fmtall\MCGBOXall.xml(21):
C:\Development\fmtall\RGEBCK_00all.xml(10):
C:\Development\fmtall\WCN1all.xml(25):
C:\Development\fmtall\wst1all.xml(36):
----------------------------------------
'showsectiontitles' (false by default) format flag on sectionlayout
C:\Development\fmtall\BGEALNall.xml(32):
C:\Development\fmtall\BGEEOPall.xml(26):
C:\Development\fmtall\BGEOIall.xml(40):
C:\Development\fmtall\BGESTPall.xml(38):
C:\Development\fmtall\CAL1all.xml(39):
C:\Development\fmtall\CATall.xml(25):
C:\Development\fmtall\CATBOXall.xml(25):
C:\Development\fmtall\FNPall.xml(36):
C:\Development\fmtall\GPCAall.xml(25):
C:\Development\fmtall\IP3_08all.xml(19): (and other subformats)
C:\Development\fmtall\MCGall.xml(29):
C:\Development\fmtall\MCGBOXall.xml(29):
C:\Development\fmtall\NSPARPall.xml(62):
C:\Development\fmtall\NSPFCall.xml(29):
C:\Development\fmtall\NSPIFG2all.xml(27):
C:\Development\fmtall\NSPIFGall.xml(27):
C:\Development\fmtall\NSPPEall.xml(32):
C:\Development\fmtall\RGEBCK_00all.xml(16):
C:\Development\fmtall\TPall.xml(34):
C:\Development\fmtall\WCN1all.xml(39):
C:\Development\fmtall\WCN2all.xml(38):
C:\Development\fmtall\WEP2all.xml(35):
C:\Development\fmtall\WEPSAM2all.xml(25):
C:\Development\fmtall\WEPSAMGall.xml(25):
C:\Development\fmtall\WPSall.xml(31):
C:\Development\fmtall\WPSARPall.xml(59):
C:\Development\fmtall\WPSBCK_00all.xml(61):
C:\Development\fmtall\WPSDOMall.xml(40):
C:\Development\fmtall\WPSOPall.xml(56):
C:\Development\fmtall\wst1all.xml(44):
C:\Development\fmtall\wst2all.xml(28):
C:\Development\fmtall\wstalrall.xml(28):
----------------------------------------
Find 'cancelsection title (true by default) defined on docstyle
C:\Development\fmtall\AEPall.xml(371):
C:\Development\fmtall\AEPAPPRall.xml(227):
C:\Development\fmtall\AEPCHIDall.xml(385):
C:\Development\fmtall\AEPCHID_00all.xml(206):
C:\Development\fmtall\AEPDEVall.xml(234):
C:\Development\fmtall\AEP_00all.xml(206): and other subformats
C:\Development\fmtall\BASEall.xml(505):
C:\Development\fmtall\BGEALNall.xml(371):
C:\Development\fmtall\BGEEOPall.xml(519):
C:\Development\fmtall\BGEEOP_00all.xml(164):
C:\Development\fmtall\BGEOI_00all.xml(314):
C:\Development\fmtall\BGESTPall.xml(590):
C:\Development\fmtall\BGEVLall.xml(328):
C:\Development\fmtall\CAL1all.xml(473):
C:\Development\fmtall\CAL2all.xml(403):
C:\Development\fmtall\CAL2_00all.xml(266):
C:\Development\fmtall\CALBCKall.xml(287):
C:\Development\fmtall\CALOTOall.xml(392):
C:\Development\fmtall\CATADEVall.xml(211):
C:\Development\fmtall\CATall.xml(313):
C:\Development\fmtall\CATBOXall.xml(313):
C:\Development\fmtall\CATDEVall.xml(181):
C:\Development\fmtall\CATEBCKall.xml(237):
C:\Development\fmtall\CPBCK2all.xml(286):
C:\Development\fmtall\CPBCKall.xml(366):
C:\Development\fmtall\CPBCK_00all.xml(188): & other sub
C:\Development\fmtall\CPLAall.xml(258):
C:\Development\fmtall\CPLall.xml(340):
C:\Development\fmtall\CPLRDEVall.xml(173):
C:\Development\fmtall\CPLS2all.xml(333):
C:\Development\fmtall\CPLSall.xml(331):
C:\Development\fmtall\CPLSDEVall.xml(202):
C:\Development\fmtall\CPLSSDDall.xml(319):
C:\Development\fmtall\CPLSSUMall.xml(193):
C:\Development\fmtall\CPL_00all.xml(253): & other sub
C:\Development\fmtall\CWEall.xml(387):
C:\Development\fmtall\CWEDEVall.xml(161):
C:\Development\fmtall\CWERall.xml(371):
C:\Development\fmtall\CWER_00all.xml(199): & other sub
C:\Development\fmtall\EBCKall.xml(231):
C:\Development\fmtall\ELFDEVall.xml(221):
C:\Development\fmtall\ENall.xml(242):
C:\Development\fmtall\ESFDEVall.xml(211):
C:\Development\fmtall\EXCLNall.xml(390):
C:\Development\fmtall\EXCLN_00all.xml(206): & other sub
C:\Development\fmtall\EXEBCKall.xml(270):
C:\Development\fmtall\EXEBCK_00all.xml(163):
C:\Development\fmtall\EXEDEVall.xml(221):
C:\Development\fmtall\FNPall.xml(359):
C:\Development\fmtall\FNPCASall.xml(110):
C:\Development\fmtall\FNPDEVall.xml(303):
C:\Development\fmtall\FNPDEVall.xml(337):
C:\Development\fmtall\FNPEBKall.xml(244):
C:\Development\fmtall\FNP_00all.xml(152): & other sub
C:\Development\fmtall\FPLall.xml(328):
C:\Development\fmtall\FPLBCKall.xml(297):
C:\Development\fmtall\GENall.xml(377):
C:\Development\fmtall\GENDEVall.xml(161):
C:\Development\fmtall\GENPLANall.xml(175):
C:\Development\fmtall\GPCAall.xml(307):
C:\Development\fmtall\GPCall.xml(301):
C:\Development\fmtall\GPCA_00all.xml(179):
C:\Development\fmtall\HLPall.xml(537):
C:\Development\fmtall\HLPDEVall.xml(255):
C:\Development\fmtall\IP2all.xml(254):
C:\Development\fmtall\IP2BCKall.xml(290):
C:\Development\fmtall\IP2DEVall.xml(171):
C:\Development\fmtall\IP2_00all.xml(169): and sub
C:\Development\fmtall\IP3all.xml(192):
C:\Development\fmtall\IP3DEVall.xml(171):
C:\Development\fmtall\IP3DEV_00all.xml(235):
C:\Development\fmtall\IP3_00all.xml(264): & sub
C:\Development\fmtall\MAINGall.xml(154):
C:\Development\fmtall\MCGall.xml(346):
C:\Development\fmtall\MCGBOXall.xml(346):
C:\Development\fmtall\MCGDEVall.xml(181):
C:\Development\fmtall\MCGEBCKall.xml(234):
C:\Development\fmtall\NSPABall.xml(358):
C:\Development\fmtall\NSPAB_00all.xml(206): & sub
C:\Development\fmtall\NSPall.xml(318):
C:\Development\fmtall\NSPARPall.xml(394):
C:\Development\fmtall\NSPARP_00all.xml(271):
C:\Development\fmtall\NSPBCKall.xml(198):
C:\Development\fmtall\NSPDEVall.xml(178):
C:\Development\fmtall\NSPEDEVall.xml(229):
C:\Development\fmtall\NSPFCall.xml(262):
C:\Development\fmtall\NSPIFG2all.xml(289):
C:\Development\fmtall\NSPIFGall.xml(289):
C:\Development\fmtall\NSPIFG_00all.xml(188):
C:\Development\fmtall\NSPPEall.xml(265):
C:\Development\fmtall\NSPSAMall.xml(291):
C:\Development\fmtall\NSPWGall.xml(143):
C:\Development\fmtall\NSP_00all.xml(144):
C:\Development\fmtall\OHLPall.xml(313):
C:\Development\fmtall\OHLPall.xml(360):
C:\Development\fmtall\RGEall.xml(257):
C:\Development\fmtall\RGEBCKall.xml(253):
C:\Development\fmtall\RGEBCK_00all.xml(196):
C:\Development\fmtall\RGEDEVall.xml(177):
C:\Development\fmtall\RGESAM1all.xml(242):
C:\Development\fmtall\RGESAM2all.xml(211):
C:\Development\fmtall\RGESMPEall.xml(176):
C:\Development\fmtall\ROBall.xml(382):
C:\Development\fmtall\ROB_00all.xml(270): & other sub
C:\Development\fmtall\SETDEVall.xml(168):
C:\Development\fmtall\SHEall.xml(413):
C:\Development\fmtall\SHEDEVall.xml(208):
C:\Development\fmtall\SHERVSUall.xml(206):
C:\Development\fmtall\SHESSDall.xml(261):
C:\Development\fmtall\SHESSD_00all.xml(111):
C:\Development\fmtall\TPall.xml(445):
C:\Development\fmtall\TPBCK2all.xml(286):
C:\Development\fmtall\TPBCKall.xml(367):
C:\Development\fmtall\TPBCK_00all.xml(188): & sub
C:\Development\fmtall\TP_00all.xml(173):
C:\Development\fmtall\TUECABNall.xml(351):
C:\Development\fmtall\TUECall.xml(311):
C:\Development\fmtall\TUECDEVall.xml(179):
C:\Development\fmtall\VLNCASall.xml(120):
C:\Development\fmtall\WCN1all.xml(473):
C:\Development\fmtall\WCN1all.xml(504):
C:\Development\fmtall\WCN2all.xml(409):
C:\Development\fmtall\WCNBCKall.xml(309):
C:\Development\fmtall\WCNCKLall.xml(316):
C:\Development\fmtall\WCNCLBall.xml(230):
C:\Development\fmtall\WCNDEVall.xml(198):
C:\Development\fmtall\WCNOFBall.xml(301):
C:\Development\fmtall\WEP2all.xml(529):
C:\Development\fmtall\WEPBCKall.xml(432):
C:\Development\fmtall\WEPENBall.xml(369):
C:\Development\fmtall\WEPENB_00all.xml(181): & other
C:\Development\fmtall\WEPSAM2all.xml(518):
C:\Development\fmtall\WEPSAMGall.xml(375):
C:\Development\fmtall\WPBAall.xml(232):
C:\Development\fmtall\WPBall.xml(237):
C:\Development\fmtall\WPB_20all.xml(340): & sub
C:\Development\fmtall\WPSall.xml(392):
C:\Development\fmtall\WPSARPall.xml(365):
C:\Development\fmtall\WPSARP_00all.xml(244):
C:\Development\fmtall\WPSBCKall.xml(360):
C:\Development\fmtall\WPSBCK_00all.xml(268):
C:\Development\fmtall\WPSDEVall.xml(181):
C:\Development\fmtall\WPSDOMall.xml(321):
C:\Development\fmtall\WPSDOM_00all.xml(421): & sub
C:\Development\fmtall\WPSOPall.xml(450): & sub
C:\Development\fmtall\WPSSAMGall.xml(331):
C:\Development\fmtall\WPS_00all.xml(159): & sub
C:\Development\fmtall\wst1all.xml(604):
C:\Development\fmtall\wst2all.xml(511):
C:\Development\fmtall\wstalrall.xml(415):
C:\Development\fmtall\wstcklall.xml(322):
C:\Development\fmtall\backup\WCN2all.xml(407):
-76
View File
@@ -1,76 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataLoader", "DataLoader\DataLoader.csproj", "{8E239A2B-B38C-4CD5-BA0D-A41A88BD2AEE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volian.Controls.Library", "Volian.Controls.Library\Volian.Controls.Library.csproj", "{8556527C-6615-487F-8AF7-22EBC3EF0268}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Volian.Utils.Library", "Volian.Utils.Library", "{5A0EDD18-70A4-4D5E-93CC-39F4D246352A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IniReader", "Volian.Utils.Library\IniReader\IniReader.csproj", "{889E30F7-CFBC-470D-9488-7009C354F9C9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSWord", "Volian.Utils.Library\MSWord\MSWord.csproj", "{2F79D7F9-885E-4441-99F3-045D7612B2E5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "vlnObjectLibrary", "Volian.Utils.Library\vlnObject\vlnObjectLibrary.csproj", "{933269F5-C3AD-423E-88EB-133A7333FD6B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "vlnServerLibrary", "Volian.Utils.Library\vlnServerLibrary\vlnServerLibrary.csproj", "{F9B53DDC-2A2E-4A17-B777-4EC0EE585DE2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "veproms", "veproms\veproms.csproj", "{0D8723B4-51DD-486A-A5E1-8D55BB526690}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volian.CSLA.Library", "Volian.CSLA.Library\Volian.CSLA.Library.csproj", "{3C162BD7-5DBC-45A6-90D8-9391AC8CD0FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volian.Object.Library", "Volian.Object.Library\Volian.Object.Library.csproj", "{B8BED4CF-D60A-4CC0-B652-CEFA04B774B1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8E239A2B-B38C-4CD5-BA0D-A41A88BD2AEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8E239A2B-B38C-4CD5-BA0D-A41A88BD2AEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8E239A2B-B38C-4CD5-BA0D-A41A88BD2AEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8E239A2B-B38C-4CD5-BA0D-A41A88BD2AEE}.Release|Any CPU.Build.0 = Release|Any CPU
{8556527C-6615-487F-8AF7-22EBC3EF0268}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8556527C-6615-487F-8AF7-22EBC3EF0268}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8556527C-6615-487F-8AF7-22EBC3EF0268}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8556527C-6615-487F-8AF7-22EBC3EF0268}.Release|Any CPU.Build.0 = Release|Any CPU
{889E30F7-CFBC-470D-9488-7009C354F9C9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{889E30F7-CFBC-470D-9488-7009C354F9C9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{889E30F7-CFBC-470D-9488-7009C354F9C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{889E30F7-CFBC-470D-9488-7009C354F9C9}.Release|Any CPU.Build.0 = Release|Any CPU
{2F79D7F9-885E-4441-99F3-045D7612B2E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2F79D7F9-885E-4441-99F3-045D7612B2E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F79D7F9-885E-4441-99F3-045D7612B2E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F79D7F9-885E-4441-99F3-045D7612B2E5}.Release|Any CPU.Build.0 = Release|Any CPU
{933269F5-C3AD-423E-88EB-133A7333FD6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{933269F5-C3AD-423E-88EB-133A7333FD6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{933269F5-C3AD-423E-88EB-133A7333FD6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{933269F5-C3AD-423E-88EB-133A7333FD6B}.Release|Any CPU.Build.0 = Release|Any CPU
{F9B53DDC-2A2E-4A17-B777-4EC0EE585DE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F9B53DDC-2A2E-4A17-B777-4EC0EE585DE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F9B53DDC-2A2E-4A17-B777-4EC0EE585DE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F9B53DDC-2A2E-4A17-B777-4EC0EE585DE2}.Release|Any CPU.Build.0 = Release|Any CPU
{0D8723B4-51DD-486A-A5E1-8D55BB526690}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0D8723B4-51DD-486A-A5E1-8D55BB526690}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0D8723B4-51DD-486A-A5E1-8D55BB526690}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0D8723B4-51DD-486A-A5E1-8D55BB526690}.Release|Any CPU.Build.0 = Release|Any CPU
{3C162BD7-5DBC-45A6-90D8-9391AC8CD0FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C162BD7-5DBC-45A6-90D8-9391AC8CD0FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C162BD7-5DBC-45A6-90D8-9391AC8CD0FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C162BD7-5DBC-45A6-90D8-9391AC8CD0FD}.Release|Any CPU.Build.0 = Release|Any CPU
{B8BED4CF-D60A-4CC0-B652-CEFA04B774B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B8BED4CF-D60A-4CC0-B652-CEFA04B774B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B8BED4CF-D60A-4CC0-B652-CEFA04B774B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B8BED4CF-D60A-4CC0-B652-CEFA04B774B1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{889E30F7-CFBC-470D-9488-7009C354F9C9} = {5A0EDD18-70A4-4D5E-93CC-39F4D246352A}
{2F79D7F9-885E-4441-99F3-045D7612B2E5} = {5A0EDD18-70A4-4D5E-93CC-39F4D246352A}
{933269F5-C3AD-423E-88EB-133A7333FD6B} = {5A0EDD18-70A4-4D5E-93CC-39F4D246352A}
{F9B53DDC-2A2E-4A17-B777-4EC0EE585DE2} = {5A0EDD18-70A4-4D5E-93CC-39F4D246352A}
EndGlobalSection
EndGlobal