Code quality changes [skip ci]

This commit is contained in:
Robin 2016-08-16 10:37:55 +02:00
parent 61cfe004c5
commit 798ca503a5
108 changed files with 1981 additions and 2258 deletions

View file

@ -56,7 +56,7 @@ namespace ExternalCommand {
void ButtonDeleteClick(object sender, EventArgs e) {
foreach(ListViewItem item in listView1.SelectedItems) {
string commando = item.Tag as string;
config.commands.Remove(commando);
config.Commands.Remove(commando);
config.commandlines.Remove(commando);
config.arguments.Remove(commando);
}
@ -65,12 +65,12 @@ namespace ExternalCommand {
void UpdateView() {
listView1.Items.Clear();
if(config.commands != null) {
if(config.Commands != null) {
listView1.ListViewItemSorter = new ListviewComparer();
ImageList imageList = new ImageList();
listView1.SmallImageList = imageList;
int imageNr = 0;
foreach(string commando in config.commands) {
foreach(string commando in config.Commands) {
ListViewItem item = null;
Image iconForExe = IconCache.IconForCommand(commando);
if(iconForExe != null) {