Update v0.1.1
This commit is contained in:
parent
8c0979fded
commit
c8011d5603
101
AboutFrm.Designer.cs
generated
Normal file
101
AboutFrm.Designer.cs
generated
Normal file
@ -0,0 +1,101 @@
|
||||
namespace DIT_FileNameReader
|
||||
{
|
||||
partial class AboutFrm
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrm));
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.VersionLabel = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, 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(375, 24);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "DIT - Filename Reader - Fájlnév olvasó";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
this.label2.Location = new System.Drawing.Point(13, 62);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(49, 16);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "Verzió:";
|
||||
//
|
||||
// VersionLabel
|
||||
//
|
||||
this.VersionLabel.AutoSize = true;
|
||||
this.VersionLabel.Location = new System.Drawing.Point(68, 64);
|
||||
this.VersionLabel.Name = "VersionLabel";
|
||||
this.VersionLabel.Size = new System.Drawing.Size(60, 13);
|
||||
this.VersionLabel.TabIndex = 2;
|
||||
this.VersionLabel.Text = "Verziószám";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(13, 121);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(195, 13);
|
||||
this.label4.TabIndex = 3;
|
||||
this.label4.Text = "Készítette: Lábodi Dávid - DIT Services";
|
||||
//
|
||||
// AboutFrm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(393, 175);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.VersionLabel);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "AboutFrm";
|
||||
this.Text = "AboutFrm";
|
||||
this.Load += new System.EventHandler(this.AboutFrm_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label VersionLabel;
|
||||
private System.Windows.Forms.Label label4;
|
||||
}
|
||||
}
|
37
AboutFrm.cs
Normal file
37
AboutFrm.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DIT_FileNameReader
|
||||
{
|
||||
public partial class AboutFrm : Form
|
||||
{
|
||||
public AboutFrm()
|
||||
{
|
||||
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
|
||||
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
|
||||
string version = fvi.FileVersion;
|
||||
InitializeComponent();
|
||||
this.VersionLabel.Text = version;
|
||||
this.Text = "DIT - Filename Reader - About";
|
||||
}
|
||||
|
||||
private void AboutFrm_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.ControlBox = true;
|
||||
this.MaximizeBox = false;
|
||||
this.AutoSize = false;
|
||||
this.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
this.MinimumSize = new System.Drawing.Size(this.Width, this.Height);
|
||||
this.MaximumSize = new System.Drawing.Size(this.Width, this.Height);
|
||||
}
|
||||
}
|
||||
}
|
4887
AboutFrm.resx
Normal file
4887
AboutFrm.resx
Normal file
File diff suppressed because it is too large
Load Diff
@ -49,6 +49,12 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AboutFrm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AboutFrm.Designer.cs">
|
||||
<DependentUpon>AboutFrm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ErrorFrm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -63,6 +69,9 @@
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="AboutFrm.resx">
|
||||
<DependentUpon>AboutFrm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ErrorFrm.resx">
|
||||
<DependentUpon>ErrorFrm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
@ -16,6 +16,7 @@ namespace DIT_FileNameReader
|
||||
{
|
||||
InitializeComponent();
|
||||
ErrorBox.Text = errormsg;
|
||||
this.Text = "DIT - Hibaüzenet";
|
||||
}
|
||||
|
||||
private void ErrorFrm_Load(object sender, EventArgs e)
|
||||
|
20
MainFrm.Designer.cs
generated
20
MainFrm.Designer.cs
generated
@ -28,6 +28,7 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainFrm));
|
||||
this.FilenamesBox = new System.Windows.Forms.TextBox();
|
||||
this.DirectoryDialog = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
@ -40,6 +41,7 @@
|
||||
this.DirectoryBox = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// FilenamesBox
|
||||
@ -88,9 +90,9 @@
|
||||
this.checkBox2.AutoSize = true;
|
||||
this.checkBox2.Location = new System.Drawing.Point(32, 159);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.Size = new System.Drawing.Size(194, 17);
|
||||
this.checkBox2.Size = new System.Drawing.Size(88, 17);
|
||||
this.checkBox2.TabIndex = 4;
|
||||
this.checkBox2.Text = "Fájl listázás megadott kiterjesztéssel";
|
||||
this.checkBox2.Text = "Fájlnév szűrő";
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
|
||||
//
|
||||
@ -154,11 +156,23 @@
|
||||
this.label4.TabIndex = 10;
|
||||
this.label4.Text = "Mappa elérési útvonala";
|
||||
//
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(728, 428);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(60, 13);
|
||||
this.linkLabel1.TabIndex = 11;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "Részletek..";
|
||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||
//
|
||||
// MainFrm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.linkLabel1);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.DirectoryBox);
|
||||
@ -170,6 +184,7 @@
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.FilenamesBox);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "MainFrm";
|
||||
this.Text = "Form1";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
@ -192,6 +207,7 @@
|
||||
public System.Windows.Forms.TextBox DirectoryBox;
|
||||
public System.Windows.Forms.CheckBox checkBox1;
|
||||
public System.Windows.Forms.TextBox CriteriumBox;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
}
|
||||
}
|
||||
|
||||
|
65
MainFrm.cs
65
MainFrm.cs
@ -8,6 +8,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Reflection;
|
||||
|
||||
namespace DIT_FileNameReader
|
||||
{
|
||||
@ -22,6 +23,7 @@ namespace DIT_FileNameReader
|
||||
public string[] withoutextfiles;
|
||||
public int fileindex;
|
||||
public int lengthindex;
|
||||
string defPath = new FileInfo(Assembly.GetEntryAssembly().Location).Directory.ToString();
|
||||
public MainFrm()
|
||||
{
|
||||
InitializeComponent();
|
||||
@ -95,7 +97,27 @@ namespace DIT_FileNameReader
|
||||
}
|
||||
public void FileProcess()
|
||||
{
|
||||
doPreview();
|
||||
SaveFileDialog save = new SaveFileDialog();
|
||||
save.FileName = "Fajlnevek.txt";
|
||||
save.Filter = "Text File | *.txt";
|
||||
|
||||
if (save.ShowDialog() == DialogResult.OK)
|
||||
|
||||
{
|
||||
|
||||
StreamWriter sw = new StreamWriter(save.OpenFile());
|
||||
|
||||
for (int i = 0; i < FilenamesBox.Lines.Count(); i++)
|
||||
|
||||
{
|
||||
|
||||
sw.WriteLine(FilenamesBox.Lines[i].ToString());
|
||||
|
||||
}
|
||||
sw.Dispose();
|
||||
sw.Close();
|
||||
|
||||
}
|
||||
}
|
||||
public void Preview()
|
||||
{
|
||||
@ -150,13 +172,17 @@ namespace DIT_FileNameReader
|
||||
|
||||
private void checkBox2_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox2.Checked)
|
||||
if (checkBox2.Checked==true)
|
||||
{
|
||||
extension = "*";
|
||||
CriteriumBox.Visible = true;
|
||||
doPreview();
|
||||
}
|
||||
else
|
||||
if (checkBox2.Checked==false)
|
||||
{
|
||||
extension = "*";
|
||||
CriteriumBox.Visible = false;
|
||||
doPreview();
|
||||
}
|
||||
}
|
||||
|
||||
@ -166,23 +192,32 @@ namespace DIT_FileNameReader
|
||||
}
|
||||
|
||||
private void CriteriumBox_Enter(object sender, EventArgs e)
|
||||
{
|
||||
if (CriteriumBox.Text=="*")
|
||||
{
|
||||
CriteriumBox.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
CriteriumBox.Text = extension;
|
||||
}
|
||||
}
|
||||
|
||||
private void CriteriumBox_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (!(CriteriumBox.Text=="Pl.: *.mp3"))
|
||||
if (!(CriteriumBox.Text=="*" || String.IsNullOrWhiteSpace(CriteriumBox.Text)))
|
||||
{
|
||||
extension = CriteriumBox.Text;
|
||||
CriteriumBox.Text = extension;
|
||||
isExtensionFiltered = true;
|
||||
doPreview();
|
||||
}
|
||||
else
|
||||
{
|
||||
CriteriumBox.Text = "Pl.: *.mp3";
|
||||
extension = "*";
|
||||
CriteriumBox.Text = extension;
|
||||
isExtensionFiltered = false;
|
||||
doPreview();
|
||||
}
|
||||
|
||||
}
|
||||
@ -191,7 +226,7 @@ namespace DIT_FileNameReader
|
||||
{
|
||||
if (isSelectedFolder==false && IsdefaultPath())
|
||||
{
|
||||
DirectoryBox.Text = "";
|
||||
DirectoryBox.Text = defPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -205,7 +240,7 @@ namespace DIT_FileNameReader
|
||||
{
|
||||
if (IsdefaultPath())
|
||||
{
|
||||
DirectoryBox.Text = "Pl.: D:/Zenek";
|
||||
DirectoryBox.Text = defPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -213,16 +248,6 @@ namespace DIT_FileNameReader
|
||||
DirectoryBox.Text = path;
|
||||
isSelectedFolder = true;
|
||||
doPreview();
|
||||
if (IsdefaultPath())
|
||||
{
|
||||
DirectoryBox.Text = "Pl.: D:/Zenek";
|
||||
}
|
||||
else
|
||||
{
|
||||
path = DirectoryBox.Text;
|
||||
DirectoryBox.Text = path;
|
||||
doPreview();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -266,5 +291,11 @@ namespace DIT_FileNameReader
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
AboutFrm about = new AboutFrm();
|
||||
about.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
4767
MainFrm.resx
4767
MainFrm.resx
File diff suppressed because it is too large
Load Diff
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.1.0.0")]
|
||||
[assembly: AssemblyFileVersion("0.1.0.0")]
|
||||
[assembly: AssemblyVersion("0.1.1.0")]
|
||||
[assembly: AssemblyFileVersion("0.1.1.0")]
|
||||
|
18
README.md
18
README.md
@ -1,2 +1,20 @@
|
||||
# DIT Filename Reader - DIT Fájlnév olvasó [EN/HU]
|
||||
### [HU] - Leírás
|
||||
Egy szimpla grafikus alkalmazás egy könyvtárban lévő fájlok neveinek a lekérdezéséhez.
|
||||
### [EN] - Description
|
||||
A simple GUI application to list filenames in a directory.
|
||||
|
||||
## [HU/EN] - Features
|
||||
- [HU] Folyamatos előnézetet ad a jelenlegi beállításaidhoz mérten a fájlnév lekérdezésedről.
|
||||
[EN] Provides a continuous preview of your filename query relative your current settings.
|
||||
- Fájlnév szűrő (nagyobb mappákban hasznos, pl.: kitudod listázni csak az mp3 fájlokat *.mp3)
|
||||
[EN] Filename filter (It's useful in bigger folders, for example: you can list only the mp3 files *.mp3)
|
||||
- [HU] Fájlnevek listázása kiterjesztéssel együtt vagy anélkül
|
||||
[EN] Listing filenames with extensions or without.
|
||||
- [HU] A lekérdezésed egyszerűen eltudod menteni szövegfájlba egy gombnyomással.
|
||||
[EN] You can save your file list to a text file with a simple button.
|
||||
|
||||
### TO DO / Upcoming features - jövőben érkező funkciók:
|
||||
- [ ] - Fájlok megszámlálása az adott mappában / Counting files in a given directory
|
||||
- [ ] - Megszámlálás a szűrőnek megfelelve / Counting files according to the filter
|
||||
És még sok más ami nincs ide lejegyezve.. And many more that is not listed here..
|
Loading…
Reference in New Issue
Block a user