-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from Krypton-Suite/alpha-kryptonexplorer
Alpha kryptonexplorer
- Loading branch information
Showing
11 changed files
with
1,089 additions
and
141 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
using Krypton.Toolkit; | ||
|
||
namespace KryptonExplorer | ||
{ | ||
public partial class HelpFileLocator : KryptonForm | ||
{ | ||
private Properties.Settings _settings = new(); | ||
|
||
public HelpFileLocator() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void kcmdBrowseForFile_Execute(object sender, EventArgs e) | ||
{ | ||
OpenFileDialog ofd = new OpenFileDialog() | ||
{ | ||
Title = @"Browse for Help File:", | ||
Filter = @"Compiled HTML Help Files|*.chm" | ||
}; | ||
|
||
if (ofd.ShowDialog() == DialogResult.OK) | ||
{ | ||
ktxtHelpFilePath.Text = Path.GetFullPath(ofd.FileName); | ||
} | ||
} | ||
|
||
private void kbtnOk_Click(object sender, EventArgs e) | ||
{ | ||
if (!string.IsNullOrEmpty(ktxtHelpFilePath.Text)) | ||
{ | ||
_settings.HelpFileLocation = ktxtHelpFilePath.Text; | ||
|
||
_settings.Save(); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.