-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
2,159 additions
and
2,203 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
using System; | ||
using System.Diagnostics; | ||
using System.Windows; | ||
using System.Windows.Input; | ||
|
||
namespace HUDMerger | ||
namespace HUDMerger; | ||
|
||
/// <summary> | ||
/// Interaction logic for AboutWindow.xaml | ||
/// </summary> | ||
public partial class AboutWindow : Window | ||
{ | ||
/// <summary> | ||
/// Interaction logic for AboutWindow.xaml | ||
/// </summary> | ||
public partial class AboutWindow : Window | ||
public AboutWindow() | ||
{ | ||
public AboutWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
InitializeComponent(); | ||
} | ||
|
||
private void Open_Github(object sender, MouseButtonEventArgs e) | ||
{ | ||
Process.Start("explorer", "https://github.com/cooolbros/hud-merger"); | ||
} | ||
private void Open_Github(object sender, MouseButtonEventArgs e) | ||
{ | ||
Process.Start("explorer", "https://github.com/cooolbros/hud-merger"); | ||
} | ||
|
||
private void Open_TeamFortressTV(object sender, MouseButtonEventArgs e) | ||
{ | ||
Process.Start("explorer", "https://www.teamfortress.tv/60220/hud-merger"); | ||
} | ||
private void Open_TeamFortressTV(object sender, MouseButtonEventArgs e) | ||
{ | ||
Process.Start("explorer", "https://www.teamfortress.tv/60220/hud-merger"); | ||
} | ||
} |
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,26 +1,25 @@ | ||
using System; | ||
using System.Windows.Input; | ||
|
||
namespace HUDMerger.Commands | ||
namespace HUDMerger.Commands; | ||
|
||
public abstract class CommandBase : ICommand, IDisposable | ||
{ | ||
public abstract class CommandBase : ICommand, IDisposable | ||
{ | ||
public event EventHandler CanExecuteChanged; | ||
public event EventHandler CanExecuteChanged; | ||
|
||
public virtual bool CanExecute(object parameter) | ||
{ | ||
return true; | ||
} | ||
public virtual bool CanExecute(object parameter) | ||
{ | ||
return true; | ||
} | ||
|
||
public void OnCanExecuteChanged() | ||
{ | ||
CanExecuteChanged?.Invoke(this, new EventArgs()); | ||
} | ||
public void OnCanExecuteChanged() | ||
{ | ||
CanExecuteChanged?.Invoke(this, new EventArgs()); | ||
} | ||
|
||
public abstract void Execute(object parameter); | ||
public abstract void Execute(object parameter); | ||
|
||
public virtual void Dispose() | ||
{ | ||
} | ||
public virtual void Dispose() | ||
{ | ||
} | ||
} |
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,21 +1,20 @@ | ||
using System; | ||
using System.Globalization; | ||
|
||
namespace HUDMerger.Converters | ||
namespace HUDMerger.Converters; | ||
|
||
/// <summary> | ||
/// Evaluate a boolean and return the ConverterParameter or TargetNullValue | ||
/// </summary> | ||
public class BooleanEvaluateConverter : ConverterBase | ||
{ | ||
/// <summary> | ||
/// Evaluate a boolean and return the ConverterParameter or TargetNullValue | ||
/// </summary> | ||
public class BooleanEvaluateConverter : ConverterBase | ||
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
return (bool)value ? parameter : null; | ||
} | ||
return (bool)value ? parameter : null; | ||
} | ||
|
||
public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
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,24 +1,23 @@ | ||
using System; | ||
using System.Windows; | ||
|
||
namespace HUDMerger | ||
namespace HUDMerger; | ||
|
||
/// <summary> | ||
/// Interaction logic for MainWindow.xaml | ||
/// </summary> | ||
public partial class MainWindow : Window | ||
{ | ||
/// <summary> | ||
/// Interaction logic for MainWindow.xaml | ||
/// </summary> | ||
public partial class MainWindow : Window | ||
public MainWindow() | ||
{ | ||
public MainWindow() | ||
{ | ||
InitializeComponent(); | ||
InitializeComponent(); | ||
|
||
Properties.Settings.Default.Upgrade(); | ||
Properties.Settings.Default.Save(); | ||
Properties.Settings.Default.Upgrade(); | ||
Properties.Settings.Default.Save(); | ||
|
||
// Updater | ||
bool download = Properties.Settings.Default.Download_latest_HUD_file_definitions_file_on_start_up; | ||
bool extract = Properties.Settings.Default.Extract_required_TF2_HUD_files_on_startup; | ||
Updater.Update(download, extract); | ||
} | ||
// Updater | ||
bool download = Properties.Settings.Default.Download_latest_HUD_file_definitions_file_on_start_up; | ||
bool extract = Properties.Settings.Default.Extract_required_TF2_HUD_files_on_startup; | ||
Updater.Update(download, extract); | ||
} | ||
} |
Oops, something went wrong.