Skip to content

Commit

Permalink
Create config.txt file on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Plextora committed Nov 10, 2022
1 parent 0fd5a5a commit 8839591
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions EvadeKeystrokes.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using System.Windows;
using Gma.System.MouseKeyHook;
using System.IO;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Media;
using Gma.System.MouseKeyHook;
using KeyEventArgs = System.Windows.Forms.KeyEventArgs;
using Button = System.Windows.Controls.Button;
using KeyEventArgs = System.Windows.Forms.KeyEventArgs;

namespace EvadeKeystrokes
{
Expand All @@ -21,6 +22,15 @@ public MainWindow()
{
InitializeComponent();
Subscribe();
Config();
}

private void Config()
{
if (!File.Exists("config.txt"))
{
File.Create("config.txt").Close();
}
}

private void WindowClose(object sender, System.ComponentModel.CancelEventArgs e)
Expand Down

0 comments on commit 8839591

Please sign in to comment.