Skip to content

Commit

Permalink
Large internal code rework.
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkku committed Jul 24, 2020
1 parent 4576203 commit d14845a
Show file tree
Hide file tree
Showing 19 changed files with 877 additions and 927 deletions.
8 changes: 5 additions & 3 deletions MapTool.UI/MapTool.UI.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 by Starkku
* Copyright 2017-2020 by Starkku
* This file is part of MapTool, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
Expand All @@ -26,7 +26,7 @@ public partial class MapToolUI : Form
private readonly string ProfileDirectory = AppDomain.CurrentDomain.BaseDirectory + "Profiles";

private int HoverIndex = -1;
private List<ListBoxProfile> Profiles = new List<ListBoxProfile>();
private readonly List<ListBoxProfile> Profiles = new List<ListBoxProfile>();
private ListBoxProfile SelectedProfile = null;

private bool EnableWriteDebugLog = false;
Expand All @@ -41,9 +41,11 @@ public MapToolUI(string[] args)
Version v = Assembly.GetExecutingAssembly().GetName().Version;
Text += " v." + v.ToString();
if (Profiles.Count > 0 && listProfiles.SelectedIndex != -1) buttonEditProfile.Enabled = true;
string ext1 = "", ext2 = "", delim = "", delim2 = "";
string ext1 = "", ext2 = "";
for (int i = 0; i < ValidMapExts.Count; i++)
{
string delim;
string delim2;
if (i == 0) { delim = ""; delim2 = ""; }
else { delim = ","; delim2 = ";"; }
ext1 += delim + "*" + ValidMapExts[i];
Expand Down
2 changes: 1 addition & 1 deletion MapTool.UI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 by Starkku
* Copyright 2017-2020 by Starkku
* This file is part of MapTool, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
Expand Down
167 changes: 0 additions & 167 deletions MapTool/ConversionRules.cs

This file was deleted.

Loading

0 comments on commit d14845a

Please sign in to comment.