Skip to content

Commit

Permalink
Fix bugs when adding items by btn
Browse files Browse the repository at this point in the history
  • Loading branch information
inSight committed Jul 6, 2018
1 parent 705ee71 commit 829050f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Binary file modified ExpertVideoToolbox.v12.suo
Binary file not shown.
9 changes: 3 additions & 6 deletions ExpertVideoToolbox/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ private void addFileBtn_Click(object sender, EventArgs e)
// Insert code to read the stream here.
string fp = openFileDialog1.FileName;
string setting = this.encodeSettingCB.Text;

ListViewItem item = new ListViewItem(new string[] { fp, setting });
this.fileListView.Items.Add(item);
}
addItem2FileListView(fp, setting);
}
}
}
catch (Exception ex)
Expand Down Expand Up @@ -210,8 +208,7 @@ private void addFolderBtn_Click(object sender, EventArgs e)

string setting = this.encodeSettingCB.Text;

ListViewItem item = new ListViewItem(new string[] { fp, setting });
this.fileListView.Items.Add(item);
addItem2FileListView(fp, setting);
}

}
Expand Down
2 changes: 1 addition & 1 deletion ExpertVideoToolbox/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.3")]
[assembly: AssemblyFileVersion("0.2.3.169")]
[assembly: AssemblyFileVersion("0.2.3.173")]

0 comments on commit 829050f

Please sign in to comment.