Skip to content

Commit

Permalink
updated v1.2.0:fix rename serial number bits bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-hsu committed Jan 5, 2017
1 parent a514faa commit c8d6ea5
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 22 deletions.
43 changes: 29 additions & 14 deletions BFR.WinApp/FrmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions BFR.WinApp/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Data;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Text;
using System.Windows.Forms;

Expand Down Expand Up @@ -47,6 +48,8 @@ public FrmMain()
this.progressBar1.Visible = false;
this.rbtnLower.AutoCheck = false;
this.rbtnUpper.AutoCheck = false;
var version = Assembly.GetExecutingAssembly().GetName().Version;
this.lblVersion.Text = string.Format("v{0}.{1}.{2}", version.Major, version.Minor, version.Build);
}

/// <summary>
Expand Down Expand Up @@ -141,7 +144,8 @@ private void btnStart_Click(object sender, EventArgs e)
{
type = 2;
counter = (int)this.nudStart.Value;
if (this._files.Count > (this.nudBit.Value * 10 - 1 - this.nudStart.Value))
var max = Math.Pow(10, (double) this.nudBit.Value) - 1;
if (this._files.Count > (max - (int)this.nudStart.Value))
{
Msg("序号位数最大值小于所选文件数,请更正序号位数");
return;
Expand Down Expand Up @@ -213,6 +217,10 @@ private void btnStart_Click(object sender, EventArgs e)
Msg("重命名完成");
_files = fileList;
FilesListInit();
this.tbReplaceText.Text = "";
this.tbReplacedText.Text = "";
this.tbReName.Text = "";
this.tbConnector.Text = "";
}
catch (Exception ex)
{
Expand All @@ -233,7 +241,7 @@ private void btnStart_Click(object sender, EventArgs e)
/// <param name="e"></param>
private void lnkAbout_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.lnkAbout.Links[0].LinkData = "https://github.com/SeayXu/BFR";
this.lnkAbout.Links[0].LinkData = "https://github.com/seayxu/BFR";
System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
}

Expand Down Expand Up @@ -424,6 +432,12 @@ public void SetProgressBarVisible(bool visible)
{
Invokes.SetControlVisible(this.progressBar1, visible);
}

private void lnklblLastedVersion_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.lnklblLastedVersion.Links[0].LinkData = "https://github.com/seayxu/BFR/releases/latest";
System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
}

}
}
6 changes: 3 additions & 3 deletions BFR.WinApp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("seay.me")]
[assembly: AssemblyProduct("BFR")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyCopyright("Copyright Seay © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0")]
[assembly: AssemblyFileVersion("1.2.0")]
7 changes: 6 additions & 1 deletion BFR.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BFR.WinApp", "BFR.WinApp\BFR.WinApp.csproj", "{4845D6A1-C7B1-4342-8D2F-432C254C12B0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{20798630-D795-43E8-89B5-4467B3632074}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ Windows 10 + Visual Studio 2013 + .NetFramework 2.0

# Notes

## 2016.04.03
## 2017.01.06(v1.2.0)
* 修改重命名序号位数bug

---
## 2016.04.03(v1.1.0)
* 修改备份bug
* 新增扩展名字母大小写转换
* 新增修改文件的创建时间和访问时间

---
## 2016.04.02
## 2016.04.02(v1.0.0)
* 新增批量替换文件名中内容
* 新增按序号批量重命名
* 版本生成
Expand Down

0 comments on commit c8d6ea5

Please sign in to comment.