diff options
author | emkael <emkael@tlen.pl> | 2015-12-28 20:23:40 +0000 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-12-28 20:23:40 +0000 |
commit | 1ba9f5478bea64be9f1cfa34052497f6d164017a (patch) | |
tree | cc764bdc15bf9b32cdc5b3837f79bad180039ef1 | |
parent | 6c592104f13df1374a27c05fdef47386bd508c53 (diff) |
* PBN export
git-svn-id: https://svn.emkael.info/an9k@77 05ec0d5d-773b-4d93-9e23-c81a7ac79feb
-rw-r--r-- | Analizator9000/Analizator9000/Form1.Designer.cs | 40 | ||||
-rw-r--r-- | Analizator9000/Analizator9000/Form1.cs | 40 | ||||
-rw-r--r-- | Analizator9000/Analizator9000/Form1.resx | 154 | ||||
-rw-r--r-- | Analizator9000/Analizator9000/Strings.Designer.cs | 97 | ||||
-rw-r--r-- | Analizator9000/Analizator9000/Strings.en.resx | 3 | ||||
-rw-r--r-- | Analizator9000/Analizator9000/Strings.resx | 3 |
6 files changed, 234 insertions, 103 deletions
diff --git a/Analizator9000/Analizator9000/Form1.Designer.cs b/Analizator9000/Analizator9000/Form1.Designer.cs index 237b018..4caa263 100644 --- a/Analizator9000/Analizator9000/Form1.Designer.cs +++ b/Analizator9000/Analizator9000/Form1.Designer.cs @@ -68,6 +68,7 @@ this.button1 = new System.Windows.Forms.Button();
this.generateFileNameTextBox = new System.Windows.Forms.TextBox();
this.analyzeGroup = new System.Windows.Forms.GroupBox();
+ this.exportBtn = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
@@ -186,12 +187,13 @@ this.statusListBox = new System.Windows.Forms.ListBox();
this.generateFileDialog = new System.Windows.Forms.OpenFileDialog();
this.analyzeFileDialog = new System.Windows.Forms.OpenFileDialog();
- this.toolStrip1 = new System.Windows.Forms.ToolStrip();
+ this.toolStrip = new System.Windows.Forms.ToolStrip();
this.langSelectSplitButton = new System.Windows.Forms.ToolStripSplitButton();
this.polskiToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.englishToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripWebsiteButton = new System.Windows.Forms.ToolStripButton();
this.toolStripExitButton = new System.Windows.Forms.ToolStripButton();
+ this.exportFileDialog = new System.Windows.Forms.SaveFileDialog();
this.generateGroup.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.analyzeGroup.SuspendLayout();
@@ -206,7 +208,7 @@ ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).BeginInit();
- this.toolStrip1.SuspendLayout();
+ this.toolStrip.SuspendLayout();
this.SuspendLayout();
//
// generateGroup
@@ -448,6 +450,7 @@ //
// analyzeGroup
//
+ this.analyzeGroup.Controls.Add(this.exportBtn);
this.analyzeGroup.Controls.Add(this.button2);
this.analyzeGroup.Controls.Add(this.tabControl1);
this.analyzeGroup.Controls.Add(this.analyzeFileNameTextBox);
@@ -457,6 +460,13 @@ this.analyzeGroup.Name = "analyzeGroup";
this.analyzeGroup.TabStop = false;
//
+ // exportBtn
+ //
+ resources.ApplyResources(this.exportBtn, "exportBtn");
+ this.exportBtn.Name = "exportBtn";
+ this.exportBtn.UseVisualStyleBackColor = true;
+ this.exportBtn.Click += new System.EventHandler(this.button4_Click_1);
+ //
// button2
//
resources.ApplyResources(this.button2, "button2");
@@ -1472,20 +1482,22 @@ //
// generateFileDialog
//
+ resources.ApplyResources(this.generateFileDialog, "generateFileDialog");
this.generateFileDialog.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
//
// analyzeFileDialog
//
+ resources.ApplyResources(this.analyzeFileDialog, "analyzeFileDialog");
this.analyzeFileDialog.FileOk += new System.ComponentModel.CancelEventHandler(this.analyzeFileDialog_FileOk);
//
- // toolStrip1
+ // toolStrip
//
- this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.langSelectSplitButton,
this.toolStripWebsiteButton,
this.toolStripExitButton});
- resources.ApplyResources(this.toolStrip1, "toolStrip1");
- this.toolStrip1.Name = "toolStrip1";
+ resources.ApplyResources(this.toolStrip, "toolStrip");
+ this.toolStrip.Name = "toolStrip";
//
// langSelectSplitButton
//
@@ -1525,11 +1537,17 @@ this.toolStripExitButton.Name = "toolStripExitButton";
this.toolStripExitButton.Click += new System.EventHandler(this.toolStripExitButton_Click);
//
+ // exportFileDialog
+ //
+ this.exportFileDialog.DefaultExt = "pbn";
+ resources.ApplyResources(this.exportFileDialog, "exportFileDialog");
+ this.exportFileDialog.FileOk += new System.ComponentModel.CancelEventHandler(this.exportFileDialog_FileOk);
+ //
// Form1
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.toolStrip1);
+ this.Controls.Add(this.toolStrip);
this.Controls.Add(this.analyzeGroup);
this.Controls.Add(this.generateGroup);
this.DoubleBuffered = true;
@@ -1558,8 +1576,8 @@ ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).EndInit();
- this.toolStrip1.ResumeLayout(false);
- this.toolStrip1.PerformLayout();
+ this.toolStrip.ResumeLayout(false);
+ this.toolStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -1724,12 +1742,14 @@ private System.Windows.Forms.TextBox textBox29;
private System.Windows.Forms.TextBox textBox30;
private System.Windows.Forms.Label label33;
- private System.Windows.Forms.ToolStrip toolStrip1;
+ private System.Windows.Forms.ToolStrip toolStrip;
private System.Windows.Forms.ToolStripSplitButton langSelectSplitButton;
private System.Windows.Forms.ToolStripMenuItem polskiToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem englishToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripWebsiteButton;
private System.Windows.Forms.ToolStripButton toolStripExitButton;
+ private System.Windows.Forms.Button exportBtn;
+ private System.Windows.Forms.SaveFileDialog exportFileDialog;
}
}
diff --git a/Analizator9000/Analizator9000/Form1.cs b/Analizator9000/Analizator9000/Form1.cs index 2939509..8490e30 100644 --- a/Analizator9000/Analizator9000/Form1.cs +++ b/Analizator9000/Analizator9000/Form1.cs @@ -121,6 +121,8 @@ namespace Analizator9000 this.parser = new DealerParser();
}
+ private static ResourceManager resManager;
+
/// <summary>
/// Public getter for localization resource manager
/// </summary>
@@ -278,6 +280,7 @@ namespace Analizator9000 this.addStatusLine(GetResourceManager().GetString("Form1_generateFileSaved", GetCulture()) + ": " + filename);
}
analyzeFileNameTextBox.Text = Path.GetFullPath(@"files\" + filename);
+ exportBtn.Enabled = true;
generateGroup.Enabled = true;
analyzeGroup.Enabled = true;
}
@@ -337,6 +340,7 @@ namespace Analizator9000 private void analyzeFileDialog_FileOk(object sender, CancelEventArgs e)
{
analyzeFileNameTextBox.Text = analyzeFileDialog.FileName;
+ exportBtn.Enabled = true;
}
/// <summary>
@@ -771,7 +775,41 @@ namespace Analizator9000 Application.Exit();
}
- private static ResourceManager resManager;
+ private void button4_Click_1(object sender, EventArgs e)
+ {
+ exportFileDialog.ShowDialog();
+ }
+
+ private void exportFileDialog_FileOk(object sender, CancelEventArgs e)
+ {
+ try
+ {
+ List<String> output = new List<String>();
+ String[] deals = File.ReadAllLines(analyzeFileNameTextBox.Text);
+ if (deals.Length == 0)
+ {
+ throw new Exception(GetResourceManager().GetString("Form1_analyzeNoDealsError", GetCulture()));
+ }
+ String[] vulnerabilities = { "None", "All", "NS", "EW" };
+ output.Add("% PBN 1.0");
+ output.Add("[Generator \"Analizator9000\"]");
+ foreach (string deal in deals)
+ {
+ String[] dealParts = deal.Split(':');
+ output.Add("[Board \"" + dealParts[0] + "\"]");
+ output.Add("[Dealer \"N\"]");
+ output.Add("[Vulnerable \"" + vulnerabilities[vulnerabilityBox.SelectedIndex] + "\"]");
+ output.Add("[Deal \"N:" + dealParts[1].Trim() + "\"]");
+ output.Add("");
+ }
+ File.WriteAllLines(exportFileDialog.FileName, output.ToArray());
+ MessageBox.Show(GetResourceManager().GetString("Form1_exportSuccess", GetCulture()) + ": " + exportFileDialog.FileName);
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(GetResourceManager().GetString("Form1_error", GetCulture()) + ": " + ex.Message, GetResourceManager().GetString("Form1_analyzeError"), MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ }
}
}
diff --git a/Analizator9000/Analizator9000/Form1.resx b/Analizator9000/Analizator9000/Form1.resx index da380e8..63c56f7 100644 --- a/Analizator9000/Analizator9000/Form1.resx +++ b/Analizator9000/Analizator9000/Form1.resx @@ -1134,8 +1134,48 @@ <data name=">>generateGroup.ZOrder" xml:space="preserve">
<value>2</value>
</data>
+ <data name="exportBtn.Enabled" type="System.Boolean, mscorlib">
+ <value>False</value>
+ </data>
+ <data name="exportBtn.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6
+ JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsRAAALEQF/ZF+RAAACPklE
+ QVQ4T6WS70uTURTH9y/03jdBL3prU2O4FqvBU66hLB2GFtKvJ9Isfy3TJEXLVHT5A7QVLp20Wk3CiUb+
+ AH8gJmIsJSs1l7TEoabYRDD4ds99dI9Le1MHzvPi3OfzufeeexQA/iv5p7MjAEp32xpaXat45lhGc5Mf
+ j6zzqKv9BkuVF/dLZ1BU+Bn5eR+Qkz2OG9c9DN0SENjbA9TWbFDxr7G+sQl9Yi/OJL7iyUISuF6ucEF5
+ 2Q8q7hkE+5fXcdT4GkqlCFOCk8qSwPF0iQuKCr9TcVdsw198K4gwuJF3axanjS20JAlsjQtccNM8TcWQ
+ 2Am/n/LjoOBCZsYk4mJttCwJGup9XJB+bZyKwfgTHvL4EKZ1QBRHYTBY6RdJUFM9xwXi5VEq8tgL7hn5
+ in3RTUg+24+YmDr6TRJUlM+iuwvsKYGUC29hOjfIu00NozvTsWlnCe5DvOkNBMEiC0qKp9DuBpsBoMX+
+ i737T5TeW+RNpYbRndNSPUH4VFwbdLoyWXA7fxLO58AT2yYbnAD0SRkhaTxvRtLVAgmOZfBJJ7TaYllg
+ zplgMFD9IMB3JkjBliLUAsY+LWBiZhFi9l0c17dyWH3MDo2mQBbQWFofInhsEhB8JbcSH71L8M6vIuuO
+ BZFaO4ObEXnkMdTRubIgLfUdu/cahw/onNh/SMCL9gG4u4bQ3TeCweExnDCYoNQ0IorB4aoGqFSZIYL4
+ SxcH+HjShNGQ0DvTU1G3qWF0Z9qVkuDDUemy4N8Tit/kKu4LI/ykxwAAAABJRU5ErkJggg==
+</value>
+ </data>
+ <data name="exportBtn.Location" type="System.Drawing.Point, System.Drawing">
+ <value>459, 17</value>
+ </data>
+ <data name="exportBtn.Size" type="System.Drawing.Size, System.Drawing">
+ <value>26, 23</value>
+ </data>
+ <data name="exportBtn.TabIndex" type="System.Int32, mscorlib">
+ <value>15</value>
+ </data>
+ <data name=">>exportBtn.Name" xml:space="preserve">
+ <value>exportBtn</value>
+ </data>
+ <data name=">>exportBtn.Type" xml:space="preserve">
+ <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name=">>exportBtn.Parent" xml:space="preserve">
+ <value>analyzeGroup</value>
+ </data>
+ <data name=">>exportBtn.ZOrder" xml:space="preserve">
+ <value>0</value>
+ </data>
<data name="button2.Location" type="System.Drawing.Point, System.Drawing">
- <value>411, 21</value>
+ <value>384, 17</value>
</data>
<data name="button2.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
@@ -1156,7 +1196,7 @@ <value>analyzeGroup</value>
</data>
<data name=">>button2.ZOrder" xml:space="preserve">
- <value>0</value>
+ <value>1</value>
</data>
<data name="label13.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -4336,13 +4376,13 @@ <value>analyzeGroup</value>
</data>
<data name=">>tabControl1.ZOrder" xml:space="preserve">
- <value>1</value>
+ <value>2</value>
</data>
<data name="analyzeFileNameTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>7, 20</value>
</data>
<data name="analyzeFileNameTextBox.Size" type="System.Drawing.Size, System.Drawing">
- <value>398, 20</value>
+ <value>374, 20</value>
</data>
<data name="analyzeFileNameTextBox.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
@@ -4357,7 +4397,7 @@ <value>analyzeGroup</value>
</data>
<data name=">>analyzeFileNameTextBox.ZOrder" xml:space="preserve">
- <value>2</value>
+ <value>3</value>
</data>
<data name="progressBar.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 312</value>
@@ -4378,7 +4418,7 @@ <value>analyzeGroup</value>
</data>
<data name=">>progressBar.ZOrder" xml:space="preserve">
- <value>3</value>
+ <value>4</value>
</data>
<data name="statusListBox.Font" type="System.Drawing.Font, System.Drawing">
<value>Microsoft Sans Serif, 8.25pt</value>
@@ -4402,7 +4442,7 @@ <value>analyzeGroup</value>
</data>
<data name=">>statusListBox.ZOrder" xml:space="preserve">
- <value>4</value>
+ <value>5</value>
</data>
<data name="analyzeGroup.Location" type="System.Drawing.Point, System.Drawing">
<value>514, 28</value>
@@ -4431,11 +4471,17 @@ <metadata name="generateFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
+ <data name="generateFileDialog.Filter" xml:space="preserve">
+ <value>Dealer scripts|*.dealer</value>
+ </data>
<metadata name="analyzeFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>171, 17</value>
</metadata>
- <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>317, 17</value>
+ <data name="analyzeFileDialog.Filter" xml:space="preserve">
+ <value>Deals|*.deals</value>
+ </data>
+ <metadata name="toolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>430, 15</value>
</metadata>
<data name="polskiToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>112, 22</value>
@@ -4479,20 +4525,20 @@ <data name="toolStripWebsiteButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAMLSURBVDhPdVJdTJJhGPW+bqp1U8uLXKWWbZVpYOtHKS3B
- zFLLdIgaiqEw+3GCSmpmTj8UPkGkQX6g+TN1aArVRU5H62c6dRrLWbCCqbOca9qPMz35Gc6Vdbb34t15
- nvOe5zyvxypU+sc7SMosVlJmS5neNFVa3TZVoGy0SAijOKtIv8Nd9m+QlIWhNJhN5Z2tIPuboLRpoXhX
- gMzuSPAqCAjzVaakGxUMd/mfoF+mm6VdcpSM5sD8uRt93+xIa8pF6dub4LWGgFWkwBVhsemcQLreCW07
- x6BD0ovDUDuyYflsxevZYbz5/gkPXSYkVhXiRNUbBBXfRjj3ltjdtgZ65nh5PfiPo1Bgi8P9DwT0zkKQ
- g3rwjY1IUU0jptQBH20ETsWILO62NdCBpZF2RGmSwX1+AumvWMjQXYfggRnJqiEklrsQQBrhVXsaxyJS
- p9xta6DTFukWEJcv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HB3rYBOrB40oKQ0hiwO72Q0OWLJPV98F7oEaPsR5R0HB6kFgcqLuN8UNy0
+ vW0DdNoC9TIisiS4SDHh/ToEt+QEEorHES2bQHjeCA5q2HAqYcKDtYUAvSp+6Rx4JVMIE0bCVxWJM/UR
+ YFSQuJ1nQXDmAHx4gTiadgEn/TmbRxARlFBAtOOeagkc4jMCUuNwnArGYe1VuCgy4PewG0xeAs6F3sIp
+ f87mEOlPQu85ttCMROIt0lXVeFCkwV2RDM5PPeEZzwOLSyBJUvZVQjZNiIgaa8oTiuKKlCy7xJoLabW4
+ TGv81Tc8jsUfq5iaX0JTWz/4EjUC4yQoqTbif06QWz7pfzcr1CaQo2pqNlumkShWjO47cXXBxZ+9/KSs
+ ZUWj64a0ovN33bsBqCjTwv5TN8xHfbmDIunLDnW9CYzryc02AYmqYXEFwA7XK2Nu3hy38rquntW1+/x3
+ wDK1hJ6Rb2jvm8HuIyziZlKhm5hsGmvvnYQzM2bRJpDxrK7Z1GtZm7O0I5RfMJgpbxzc5Ry4vPOQH9aP
+ u3fUxDr3rKKt43FpC5w8wv86SMmvDBUVVU1WNX9AR68Vb0yjyJQ3gHlNMBkQLZFtx+11D/qbAY2wpHyW
+ HzuTYrCEVlcfttXJM5zacyzQlvT2nIPDH0UP9IHyCeO2AAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripWebsiteButton.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
@@ -4507,22 +4553,22 @@ <data name="toolStripExitButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAANlSURBVDhPbZF9TJNXFMavRoEa2loLtFRHEYJ9oW/7Wmk0
- thik7dtKNXEGJAM/Is7QRKUabZkU+ViMDpTIdFt0IUZNzKb+YczQ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qQValWrhTybT930MM3EL4R6cu5uTA70m09v1FFVPrhkMx0K4ISEWw8DSpck0
+ zOGsQ/b9PxsYZn630Xj2kUYTv4PwVbk84dJo7i7g8b4iu0pLc6/bbL94TaZIs1b7N8KVyHCm0A/Sy+UF
+ l83mC/1W66RLrf5XwONtwfa89GVraal8I8bJzc7e+L75BdkKCxdXUtR+EZe7DY9CQgh5B+MGcVHyxtx0
+ AAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripExitButton.ImageTransparentColor" type="System.Drawing.Color, System.Drawing">
@@ -4534,30 +4580,36 @@ <data name="toolStripExitButton.Text" xml:space="preserve">
<value>Zakończ</value>
</data>
- <data name="toolStrip1.Location" type="System.Drawing.Point, System.Drawing">
+ <data name="toolStrip.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
- <data name="toolStrip1.Size" type="System.Drawing.Size, System.Drawing">
+ <data name="toolStrip.Size" type="System.Drawing.Size, System.Drawing">
<value>1018, 25</value>
</data>
- <data name="toolStrip1.TabIndex" type="System.Int32, mscorlib">
+ <data name="toolStrip.TabIndex" type="System.Int32, mscorlib">
<value>15</value>
</data>
- <data name="toolStrip1.Text" xml:space="preserve">
+ <data name="toolStrip.Text" xml:space="preserve">
<value>toolStrip1</value>
</data>
- <data name=">>toolStrip1.Name" xml:space="preserve">
- <value>toolStrip1</value>
+ <data name=">>toolStrip.Name" xml:space="preserve">
+ <value>toolStrip</value>
</data>
- <data name=">>toolStrip1.Type" xml:space="preserve">
+ <data name=">>toolStrip.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStrip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
- <data name=">>toolStrip1.Parent" xml:space="preserve">
+ <data name=">>toolStrip.Parent" xml:space="preserve">
<value>$this</value>
</data>
- <data name=">>toolStrip1.ZOrder" xml:space="preserve">
+ <data name=">>toolStrip.ZOrder" xml:space="preserve">
<value>0</value>
</data>
+ <metadata name="exportFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>300, 16</value>
+ </metadata>
+ <data name="exportFileDialog.Filter" xml:space="preserve">
+ <value>Portable Bridge Notation|*.pbn</value>
+ </data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -10815,6 +10867,12 @@ <data name=">>toolStripExitButton.Type" xml:space="preserve">
<value>System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
+ <data name=">>exportFileDialog.Name" xml:space="preserve">
+ <value>exportFileDialog</value>
+ </data>
+ <data name=">>exportFileDialog.Type" xml:space="preserve">
+ <value>System.Windows.Forms.SaveFileDialog, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
<data name=">>$this.Name" xml:space="preserve">
<value>Form1</value>
</data>
diff --git a/Analizator9000/Analizator9000/Strings.Designer.cs b/Analizator9000/Analizator9000/Strings.Designer.cs index 6f84e97..3c55011 100644 --- a/Analizator9000/Analizator9000/Strings.Designer.cs +++ b/Analizator9000/Analizator9000/Strings.Designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------
// <auto-generated>
-// Ten kod został wygenerowany przez narzędzie.
-// Wersja wykonawcza:4.0.30319.34209
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.34209
//
-// Zmiany w tym pliku mogą spowodować nieprawidłowe zachowanie i zostaną utracone, jeśli
-// kod zostanie ponownie wygenerowany.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
@@ -13,12 +13,12 @@ namespace Analizator9000 { /// <summary>
- /// Klasa zasobu wymagająca zdefiniowania typu do wyszukiwania zlokalizowanych ciągów itd.
+ /// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
- // Ta klasa została automatycznie wygenerowana za pomocą klasy StronglyTypedResourceBuilder
- // przez narzędzie, takie jak ResGen lub Visual Studio.
- // Aby dodać lub usunąć członka, edytuj plik .ResX, a następnie ponownie uruchom ResGen
- // z opcją /str lub ponownie utwórz projekt VS.
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
@@ -33,7 +33,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Zwraca buforowane wystąpienie ResourceManager używane przez tę klasę.
+ /// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
@@ -47,8 +47,8 @@ namespace Analizator9000 { }
/// <summary>
- /// Zastępuje właściwość CurrentUICulture bieżącego wątku dla wszystkich
- /// przypadków przeszukiwania zasobów za pomocą tej klasy zasobów wymagającej zdefiniowania typu.
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
@@ -61,7 +61,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Analiza zakończona. Wyniki w pliku.
+ /// Looks up a localized string similar to Analiza zakończona. Wyniki w pliku.
/// </summary>
internal static string Accumulator_analysisFinished {
get {
@@ -70,7 +70,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Analiza przewana. Częściowe wyniki w pliku.
+ /// Looks up a localized string similar to Analiza przewana. Częściowe wyniki w pliku.
/// </summary>
internal static string Accumulator_analysisInterrupted {
get {
@@ -79,7 +79,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Podano pusty zbiór rozdań.
+ /// Looks up a localized string similar to Podano pusty zbiór rozdań.
/// </summary>
internal static string Accumulator_errorNoDeals {
get {
@@ -88,7 +88,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu gra w.
+ /// Looks up a localized string similar to gra w.
/// </summary>
internal static string Accumulator_playsIn {
get {
@@ -97,7 +97,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu lew.
+ /// Looks up a localized string similar to lew.
/// </summary>
internal static string Accumulator_tricks {
get {
@@ -106,7 +106,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Nie można wczytać rozdania.
+ /// Looks up a localized string similar to Nie można wczytać rozdania.
/// </summary>
internal static string BCalcWrapper_dealLoadError {
get {
@@ -115,7 +115,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Nieprawidłowy rozgrywający.
+ /// Looks up a localized string similar to Nieprawidłowy rozgrywający.
/// </summary>
internal static string BCalcWrapper_declarerError {
get {
@@ -124,7 +124,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Nieprawidłowe miano.
+ /// Looks up a localized string similar to Nieprawidłowe miano.
/// </summary>
internal static string BCalcWrapper_trumpError {
get {
@@ -133,7 +133,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Za duża wartość 'generate'.
+ /// Looks up a localized string similar to Za duża wartość 'generate'.
/// </summary>
internal static string DealerParser_errorGenerateOverflow {
get {
@@ -142,7 +142,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Za duża wartość 'produce'.
+ /// Looks up a localized string similar to Za duża wartość 'produce'.
/// </summary>
internal static string DealerParser_errorProduceOverflow {
get {
@@ -151,7 +151,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Zbyt duża liczba wartości 'generate' w skrypcie.
+ /// Looks up a localized string similar to Zbyt duża liczba wartości 'generate' w skrypcie.
/// </summary>
internal static string DealerParser_errorTooManyGenerate {
get {
@@ -160,7 +160,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Zbyt duża liczba linii 'produce' w skrypcie.
+ /// Looks up a localized string similar to Zbyt duża liczba linii 'produce' w skrypcie.
/// </summary>
internal static string DealerParser_errorTooManyProduce {
get {
@@ -169,7 +169,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Nie znaleziono pliku.
+ /// Looks up a localized string similar to Nie znaleziono pliku.
/// </summary>
internal static string DealerWrapper_errorFileNotFound {
get {
@@ -178,7 +178,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Nieprawidłowa liczba rozdań do wyprodukowania.
+ /// Looks up a localized string similar to Nieprawidłowa liczba rozdań do wyprodukowania.
/// </summary>
internal static string DealerWrapper_errorInvalidDealCount {
get {
@@ -187,7 +187,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Błąd analizy.
+ /// Looks up a localized string similar to Błąd analizy.
/// </summary>
internal static string Form1_analyzeError {
get {
@@ -196,7 +196,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Nie podano kontraktów.
+ /// Looks up a localized string similar to Nie podano kontraktów.
/// </summary>
internal static string Form1_analyzeNoContractsError {
get {
@@ -205,7 +205,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Plik nie zawiera żadnych rozdań.
+ /// Looks up a localized string similar to Plik nie zawiera żadnych rozdań.
/// </summary>
internal static string Form1_analyzeNoDealsError {
get {
@@ -214,7 +214,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Otwieram plik.
+ /// Looks up a localized string similar to Otwieram plik.
/// </summary>
internal static string Form1_analyzeOpenFile {
get {
@@ -223,7 +223,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Błąd.
+ /// Looks up a localized string similar to Błąd.
/// </summary>
internal static string Form1_error {
get {
@@ -232,7 +232,16 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Błąd wczytywania pliku.
+ /// Looks up a localized string similar to Eksport do PBN zakończony. Plik wynikowy.
+ /// </summary>
+ internal static string Form1_exportSuccess {
+ get {
+ return ResourceManager.GetString("Form1_exportSuccess", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Błąd wczytywania pliku.
/// </summary>
internal static string Form1_fileOpenError {
get {
@@ -241,7 +250,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Nie można utworzyć pliku. Sprawdź, czy w katalogu programu istnieje katalog 'files'.
+ /// Looks up a localized string similar to Nie można utworzyć pliku. Sprawdź, czy w katalogu programu istnieje katalog 'files'.
/// </summary>
internal static string Form1_generateFileNotFoundError {
get {
@@ -250,7 +259,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Zapisano do pliku.
+ /// Looks up a localized string similar to Zapisano do pliku.
/// </summary>
internal static string Form1_generateFileSaved {
get {
@@ -259,7 +268,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Błąd generatora.
+ /// Looks up a localized string similar to Błąd generatora.
/// </summary>
internal static string Form1_generateGeneratorError {
get {
@@ -268,7 +277,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Błąd wprowadzania danych.
+ /// Looks up a localized string similar to Błąd wprowadzania danych.
/// </summary>
internal static string Form1_generateInputError {
get {
@@ -277,7 +286,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu IMP.
+ /// Looks up a localized string similar to IMP.
/// </summary>
internal static string ScoreAccumulator_IMP {
get {
@@ -286,7 +295,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu max.
+ /// Looks up a localized string similar to max.
/// </summary>
internal static string ScoreAccumulator_MP {
get {
@@ -295,7 +304,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu KONTRAKT LEWY ZAPIS WYGRA? MAX IMP.
+ /// Looks up a localized string similar to KONTRAKT LEWY ZAPIS WYGRA? MAX IMP.
/// </summary>
internal static string ScoreAccumulator_txtHeader {
get {
@@ -304,7 +313,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu obie po.
+ /// Looks up a localized string similar to obie po.
/// </summary>
internal static string ScoreAccumulator_vulBoth {
get {
@@ -313,7 +322,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu EW po.
+ /// Looks up a localized string similar to EW po.
/// </summary>
internal static string ScoreAccumulator_vulEW {
get {
@@ -322,7 +331,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu Założenia.
+ /// Looks up a localized string similar to Założenia.
/// </summary>
internal static string ScoreAccumulator_vulnerability {
get {
@@ -331,7 +340,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu obie przed.
+ /// Looks up a localized string similar to obie przed.
/// </summary>
internal static string ScoreAccumulator_vulNone {
get {
@@ -340,7 +349,7 @@ namespace Analizator9000 { }
/// <summary>
- /// Wyszukuje zlokalizowany ciąg podobny do ciągu NS po.
+ /// Looks up a localized string similar to NS po.
/// </summary>
internal static string ScoreAccumulator_vulNS {
get {
diff --git a/Analizator9000/Analizator9000/Strings.en.resx b/Analizator9000/Analizator9000/Strings.en.resx index ffbe29d..b6e403d 100644 --- a/Analizator9000/Analizator9000/Strings.en.resx +++ b/Analizator9000/Analizator9000/Strings.en.resx @@ -213,4 +213,7 @@ <data name="Accumulator_tricks" xml:space="preserve">
<value>tricks</value>
</data>
+ <data name="Form1_exportSuccess" xml:space="preserve">
+ <value>PBN export successful. Saved file</value>
+ </data>
</root>
\ No newline at end of file diff --git a/Analizator9000/Analizator9000/Strings.resx b/Analizator9000/Analizator9000/Strings.resx index 5bfb046..36bc394 100644 --- a/Analizator9000/Analizator9000/Strings.resx +++ b/Analizator9000/Analizator9000/Strings.resx @@ -213,4 +213,7 @@ <data name="Accumulator_tricks" xml:space="preserve">
<value>lew</value>
</data>
+ <data name="Form1_exportSuccess" xml:space="preserve">
+ <value>Eksport do PBN zakończony. Plik wynikowy</value>
+ </data>
</root>
\ No newline at end of file |