-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made icons of forms loadable from Application.StartupPath.
Picture of frmAutor also loadable. frmHelp shows error message if Help.rtf isn't found. Created IconExtension.cs to load Keppler Icon. Deleted unused usings.
- Loading branch information
1 parent
492ac65
commit de3a58a
Showing
22 changed files
with
79 additions
and
1,902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace B_ESA_4.Common | ||
namespace B_ESA_4.Common | ||
{ | ||
public static class CommonConstants | ||
{ | ||
public const int ONE_SECOND = 1000; | ||
public const string Sign = "@"; | ||
public const string ItemSign = "o"; | ||
public const string Wall = "#"; | ||
public const string Point = "."; | ||
public const string Point = "."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Drawing; | ||
using System.IO; | ||
|
||
namespace B_ESA_4.Common | ||
{ | ||
public static class IconExtension | ||
{ | ||
const string K_ICON = "K.ico"; | ||
|
||
public static Icon GetKepplerIcon(this Icon icon, string startUpPath) | ||
{ | ||
string iconFile = startUpPath + "\\" + K_ICON; | ||
if (File.Exists(iconFile)) | ||
{ | ||
return new Icon(iconFile); | ||
} | ||
return icon; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.