1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Plik wykonywalny i źródła Def Sortera.

Instrukcja:
Wrzucić do folderu z jakimiś defami i odpalić.
Mam nadzieję, że działą.
This commit is contained in:
Michał W. Urbańczyk 2007-06-09 21:51:28 +00:00
parent 8a8414c0e7
commit f2435b78cf
8 changed files with 1030 additions and 0 deletions

BIN
DefSorter.exe Normal file

Binary file not shown.

99
defSorter/Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,99 @@
namespace DefSorter
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.SuspendLayout();
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button1.Location = new System.Drawing.Point(41, 35);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(138, 27);
this.button1.TabIndex = 0;
this.button1.Text = "Posortuj defy!";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(114, 18);
this.label1.TabIndex = 1;
this.label1.Text = "Defów wykryto: ";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label2.Location = new System.Drawing.Point(146, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(52, 18);
this.label2.TabIndex = 2;
this.label2.Text = "XXXX";
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(4, 73);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(202, 19);
this.progressBar1.TabIndex = 3;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(210, 97);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "Def sorter by Tow";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ProgressBar progressBar1;
}
}

242
defSorter/Form1.cs Normal file
View File

@ -0,0 +1,242 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;
namespace DefSorter
{
public partial class Form1 : Form
{
int bledy;
public Form1()
{
InitializeComponent();
int ile = 0;
bledy = 0;
string[] pliczki = Directory.GetFiles(Directory.GetCurrentDirectory());
foreach (string ss in pliczki)
{
if (!(ss.EndsWith(".DEF")))
continue;
else ile++;
}
label2.Text = ile.ToString();
progressBar1.Visible = false;
}
private void button1_Click(object sender, EventArgs e)
{
int s12 = 0, s13 = 0, s14 = 0, s15 = 0, s16 = 0, s17 = 0, s18 = 0,
s19 = 0, s20 = 0, s21 = 0;
Form2 pozegnanie = new Form2();
ArrayList defy = new ArrayList();
string[] pliczki = Directory.GetFiles(Directory.GetCurrentDirectory(),"*.DEF");
progressBar1.Visible = true;
progressBar1.Minimum = progressBar1.Value = 0;
progressBar1.Maximum = Convert.ToInt32(label2.Text);
foreach (string ss in pliczki)
{
if (!(ss.EndsWith(".DEF")))
continue;
FileStream czytacz = File.OpenRead(ss);
int coTo = czytacz.ReadByte();
czytacz.Close();
int poczP = ss.LastIndexOf('\\');
string nazwa = ss.Substring(poczP + 1, ss.Length - poczP - 1);
try
{
switch (coTo)
{
case 64:
if (!Directory.Exists("40Spell"))
Directory.CreateDirectory("40Spell");
File.Copy(ss, "40Spell\\" + nazwa);
s12++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "40Spell\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "40Spell\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 65:
if (!Directory.Exists("41SpriteDef"))
Directory.CreateDirectory("41SpriteDef");
File.Copy(ss, "41SpriteDef\\" + nazwa);
s13++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "41SpriteDef\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "41SpriteDef\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 66:
if (!Directory.Exists("42Creature"))
Directory.CreateDirectory("42Creature");
File.Copy(ss, "42Creature\\" + nazwa);
s14++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "42Creature\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "42Creature\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 67:
if (!Directory.Exists("43AdvObject"))
Directory.CreateDirectory("43AdvObject");
File.Copy(ss, "43AdvObject\\" + nazwa);
s15++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "43AdvObject\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "43AdvObject\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 68:
if (!Directory.Exists("44Hero"))
Directory.CreateDirectory("44Hero");
File.Copy(ss, "44Hero\\" + nazwa);
s16++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "44Hero\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "44Hero\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 69:
if (!Directory.Exists("45Terrain"))
Directory.CreateDirectory("45Terrain");
File.Copy(ss, "45Terrain\\" + nazwa);
s17++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4)+".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4)+".MSK","45Terrain\\"+nazwa.Substring(0, nazwa.Length - 4)+".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4)+".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4)+".MSG","45Terrain\\"+nazwa.Substring(0, nazwa.Length - 4)+".MSG");
}
break;
case 70:
if (!Directory.Exists("46Cursor"))
Directory.CreateDirectory("46Cursor");
File.Copy(ss, "46Cursor\\" + nazwa);
s18++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "46Cursor\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "46Cursor\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 71:
if (!Directory.Exists("47Interface"))
Directory.CreateDirectory("47Interface");
File.Copy(ss, "47Interface\\" + nazwa);
s19++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "47Interface\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "47Interface\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 72:
if (!Directory.Exists("48Spriteframe"))
Directory.CreateDirectory("48Spriteframe");
File.Copy(ss, "48Spriteframe\\" + nazwa);
s20++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "48Spriteframe\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "48Spriteframe\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
case 73:
if (!Directory.Exists("49CombatHero"))
Directory.CreateDirectory("49CombatHero");
File.Copy(ss, "49CombatHero\\" + nazwa);
s21++;
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSK"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSK", "49CombatHero\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSK");
}
if (File.Exists(nazwa.Substring(0, nazwa.Length - 4) + ".MSG"))
{
File.Copy(nazwa.Substring(0, nazwa.Length - 4) + ".MSG", "49CombatHero\\" + nazwa.Substring(0, nazwa.Length - 4) + ".MSG");
}
break;
}
}
catch (Exception ee)
{
bledy++;
Form3 niedobrze = new Form3();
niedobrze.textBox1.Text += ee.Message;
DialogResult res = niedobrze.ShowDialog();
switch (res)
{
case DialogResult.Ignore:
break;
case DialogResult.Cancel:
try { Directory.Delete("40Spell"); }catch(Exception){};
try { Directory.Delete("41SpriteDef"); }catch(Exception){};
try { Directory.Delete("42Creature"); }catch(Exception){};
try { Directory.Delete("43AdvObject"); }catch(Exception){};
try { Directory.Delete("45Terrain"); }catch(Exception){};
try { Directory.Delete("46Cursor"); }catch(Exception){};
try { Directory.Delete("47Interface"); }catch(Exception){};
try { Directory.Delete("48Spriteframe"); }catch(Exception){};
try { Directory.Delete("49CombatHero"); }catch(Exception){};
Application.Exit();
break;
}
}
progressBar1.Value++;
if (progressBar1.Value % 100 == 5)
this.Update();
}
progressBar1.Visible = false;
pozegnanie.label12.Text = s12.ToString();
pozegnanie.label13.Text = s13.ToString();
pozegnanie.label14.Text = s14.ToString();
pozegnanie.label15.Text = s15.ToString();
pozegnanie.label16.Text = s16.ToString();
pozegnanie.label17.Text = s17.ToString();
pozegnanie.label18.Text = s18.ToString();
pozegnanie.label19.Text = s19.ToString();
pozegnanie.label20.Text = s20.ToString();
pozegnanie.label21.Text = s21.ToString();
pozegnanie.label34.Text = bledy.ToString();
if (bledy == 0)
pozegnanie.label35.Text = ":)";
pozegnanie.Show();
pozegnanie.Activate();
}
}
}

517
defSorter/Form2.Designer.cs generated Normal file
View File

@ -0,0 +1,517 @@
namespace DefSorter
{
partial class Form2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label23 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.label26 = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.label29 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.label32 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label33 = new System.Windows.Forms.Label();
this.label34 = new System.Windows.Forms.Label();
this.label35 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(255, 17);
this.label1.TabIndex = 0;
this.label1.Text = "Szczęśliwie posortowano. Wg kategorii:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label2.Location = new System.Drawing.Point(12, 26);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 17);
this.label2.TabIndex = 1;
this.label2.Text = "40Spell:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label3.Location = new System.Drawing.Point(12, 43);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(87, 17);
this.label3.TabIndex = 1;
this.label3.Text = "41SpriteDef:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label4.Location = new System.Drawing.Point(12, 60);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(83, 17);
this.label4.TabIndex = 1;
this.label4.Text = "42Creature:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label5.Location = new System.Drawing.Point(12, 77);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(93, 17);
this.label5.TabIndex = 1;
this.label5.Text = "43AdvObject:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label6.Location = new System.Drawing.Point(12, 94);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(59, 17);
this.label6.TabIndex = 1;
this.label6.Text = "44Hero:";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label7.Location = new System.Drawing.Point(12, 111);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(74, 17);
this.label7.TabIndex = 1;
this.label7.Text = "45Terrain:";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label8.Location = new System.Drawing.Point(12, 128);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(70, 17);
this.label8.TabIndex = 1;
this.label8.Text = "46Cursor:";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label9.Location = new System.Drawing.Point(12, 145);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(83, 17);
this.label9.TabIndex = 1;
this.label9.Text = "47Interface:";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label10.Location = new System.Drawing.Point(12, 162);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(101, 17);
this.label10.TabIndex = 1;
this.label10.Text = "48Spriteframe:";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label11.Location = new System.Drawing.Point(12, 179);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(107, 17);
this.label11.TabIndex = 1;
this.label11.Text = "49CombatHero:";
this.label11.Click += new System.EventHandler(this.label11_Click);
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label12.Location = new System.Drawing.Point(125, 26);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(48, 17);
this.label12.TabIndex = 2;
this.label12.Text = "XXXX";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label13.Location = new System.Drawing.Point(125, 43);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(48, 17);
this.label13.TabIndex = 2;
this.label13.Text = "XXXX";
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label14.Location = new System.Drawing.Point(125, 60);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(48, 17);
this.label14.TabIndex = 2;
this.label14.Text = "XXXX";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label15.Location = new System.Drawing.Point(125, 77);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(48, 17);
this.label15.TabIndex = 2;
this.label15.Text = "XXXX";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label16.Location = new System.Drawing.Point(125, 94);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(48, 17);
this.label16.TabIndex = 2;
this.label16.Text = "XXXX";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label17.Location = new System.Drawing.Point(125, 111);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(48, 17);
this.label17.TabIndex = 2;
this.label17.Text = "XXXX";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label18.Location = new System.Drawing.Point(125, 128);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(48, 17);
this.label18.TabIndex = 2;
this.label18.Text = "XXXX";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label19.Location = new System.Drawing.Point(125, 145);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(48, 17);
this.label19.TabIndex = 2;
this.label19.Text = "XXXX";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label20.Location = new System.Drawing.Point(125, 162);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(48, 17);
this.label20.TabIndex = 2;
this.label20.Text = "XXXX";
//
// label21
//
this.label21.AutoSize = true;
this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label21.Location = new System.Drawing.Point(125, 179);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(48, 17);
this.label21.TabIndex = 2;
this.label21.Text = "XXXX";
//
// label22
//
this.label22.AutoSize = true;
this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label22.Location = new System.Drawing.Point(179, 26);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(49, 17);
this.label22.TabIndex = 3;
this.label22.Text = "defów.";
//
// label23
//
this.label23.AutoSize = true;
this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label23.Location = new System.Drawing.Point(179, 43);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(49, 17);
this.label23.TabIndex = 3;
this.label23.Text = "defów.";
//
// label24
//
this.label24.AutoSize = true;
this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label24.Location = new System.Drawing.Point(179, 60);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(49, 17);
this.label24.TabIndex = 3;
this.label24.Text = "defów.";
//
// label25
//
this.label25.AutoSize = true;
this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label25.Location = new System.Drawing.Point(179, 77);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(49, 17);
this.label25.TabIndex = 3;
this.label25.Text = "defów.";
//
// label26
//
this.label26.AutoSize = true;
this.label26.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label26.Location = new System.Drawing.Point(179, 94);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(49, 17);
this.label26.TabIndex = 3;
this.label26.Text = "defów.";
//
// label27
//
this.label27.AutoSize = true;
this.label27.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label27.Location = new System.Drawing.Point(179, 111);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(49, 17);
this.label27.TabIndex = 3;
this.label27.Text = "defów.";
//
// label28
//
this.label28.AutoSize = true;
this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label28.Location = new System.Drawing.Point(179, 128);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(49, 17);
this.label28.TabIndex = 3;
this.label28.Text = "defów.";
//
// label29
//
this.label29.AutoSize = true;
this.label29.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label29.Location = new System.Drawing.Point(179, 145);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(49, 17);
this.label29.TabIndex = 3;
this.label29.Text = "defów.";
//
// label30
//
this.label30.AutoSize = true;
this.label30.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label30.Location = new System.Drawing.Point(179, 162);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(49, 17);
this.label30.TabIndex = 3;
this.label30.Text = "defów.";
//
// label31
//
this.label31.AutoSize = true;
this.label31.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label31.Location = new System.Drawing.Point(179, 179);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(49, 17);
this.label31.TabIndex = 3;
this.label31.Text = "defów.";
//
// label32
//
this.label32.AutoSize = true;
this.label32.Location = new System.Drawing.Point(12, 221);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(258, 13);
this.label32.TabIndex = 4;
this.label32.Text = "Defy zostaly umieszczone w odpowiednich folderach.";
//
// button1
//
this.button1.Location = new System.Drawing.Point(98, 237);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 5;
this.button1.Text = "Koniec!";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label33
//
this.label33.AutoSize = true;
this.label33.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label33.Location = new System.Drawing.Point(12, 196);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(57, 17);
this.label33.TabIndex = 1;
this.label33.Text = "Błędów:";
this.label33.Click += new System.EventHandler(this.label11_Click);
//
// label34
//
this.label34.AutoSize = true;
this.label34.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label34.Location = new System.Drawing.Point(125, 196);
this.label34.Name = "label34";
this.label34.Size = new System.Drawing.Size(48, 17);
this.label34.TabIndex = 2;
this.label34.Text = "XXXX";
//
// label35
//
this.label35.AutoSize = true;
this.label35.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label35.Location = new System.Drawing.Point(179, 196);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(17, 17);
this.label35.TabIndex = 3;
this.label35.Text = ":(";
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(276, 272);
this.Controls.Add(this.button1);
this.Controls.Add(this.label32);
this.Controls.Add(this.label35);
this.Controls.Add(this.label31);
this.Controls.Add(this.label29);
this.Controls.Add(this.label30);
this.Controls.Add(this.label27);
this.Controls.Add(this.label28);
this.Controls.Add(this.label26);
this.Controls.Add(this.label25);
this.Controls.Add(this.label24);
this.Controls.Add(this.label23);
this.Controls.Add(this.label22);
this.Controls.Add(this.label34);
this.Controls.Add(this.label21);
this.Controls.Add(this.label20);
this.Controls.Add(this.label19);
this.Controls.Add(this.label18);
this.Controls.Add(this.label17);
this.Controls.Add(this.label16);
this.Controls.Add(this.label15);
this.Controls.Add(this.label14);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.label33);
this.Controls.Add(this.label11);
this.Controls.Add(this.label10);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "Form2";
this.Text = "Udało się! :)";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.Label label24;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.Label label26;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Label label32;
private System.Windows.Forms.Button button1;
public System.Windows.Forms.Label label12;
public System.Windows.Forms.Label label13;
public System.Windows.Forms.Label label14;
public System.Windows.Forms.Label label15;
public System.Windows.Forms.Label label16;
public System.Windows.Forms.Label label17;
public System.Windows.Forms.Label label18;
public System.Windows.Forms.Label label19;
public System.Windows.Forms.Label label20;
public System.Windows.Forms.Label label21;
private System.Windows.Forms.Label label33;
public System.Windows.Forms.Label label34;
public System.Windows.Forms.Label label35;
}
}

28
defSorter/Form2.cs Normal file
View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace DefSorter
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void label11_Click(object sender, EventArgs e)
{
}
}
}

101
defSorter/Form3.Designer.cs generated Normal file
View File

@ -0,0 +1,101 @@
namespace DefSorter
{
partial class Form3
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 12);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(268, 209);
this.textBox1.TabIndex = 0;
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.Ignore;
this.button1.Location = new System.Drawing.Point(12, 231);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 1;
this.button1.Text = "Pomiń";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(205, 231);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 1;
this.button2.Text = "Harakiri";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button3.Location = new System.Drawing.Point(93, 231);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(106, 23);
this.button3.TabIndex = 1;
this.button3.Text = "Anuluj wszystko";
this.button3.UseVisualStyleBackColor = true;
//
// Form3
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "Form3";
this.Text = "Nastapil blad :(";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
public System.Windows.Forms.TextBox textBox1;
public System.Windows.Forms.Button button1;
public System.Windows.Forms.Button button2;
public System.Windows.Forms.Button button3;
}
}

23
defSorter/Form3.cs Normal file
View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace DefSorter
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}

20
defSorter/Program.cs Normal file
View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace DefSorter
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}