GUI: Implement plugin interface

This commit is contained in:
Katy Coe
2020-12-19 20:49:39 +01:00
parent 3ee658d5ac
commit 637952f360
11 changed files with 621 additions and 15 deletions

View File

@@ -1,5 +1,8 @@
// Copyright (c) 2020 Katy Coe - https://www.djkaty.com - https://github.com/djkaty
// All rights reserved
/*
Copyright 2020 Katy Coe - http://www.djkaty.com - https://github.com/djkaty
All rights reserved.
*/
using System;
using System.Collections.Generic;
@@ -71,6 +74,15 @@ namespace Il2CppInspectorGUI
Process.Start(new ProcessStartInfo {FileName = e.Uri.ToString(), UseShellExecute = true});
}
/// <summary>
/// Open Manage Plugins dialog
/// </summary>
private void BtnPluginOptions_Click(object sender, RoutedEventArgs e) {
var configDlg = new PluginManagerDialog();
configDlg.Owner = this;
configDlg.ShowDialog();
}
/// <summary>
/// Open Load Options dialog
/// </summary>
@@ -109,7 +121,7 @@ namespace Il2CppInspectorGUI
else {
areaBusyIndicator.Visibility = Visibility.Hidden;
grdFirstPage.Visibility = Visibility.Visible;
MessageBox.Show(this, app.LastException.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
MessageBox.Show(this, app.LastException.Message + Environment.NewLine + app.LastException.StackTrace, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
@@ -145,7 +157,7 @@ namespace Il2CppInspectorGUI
else {
areaBusyIndicator.Visibility = Visibility.Hidden;
btnSelectBinaryFile.Visibility = Visibility.Visible;
MessageBox.Show(this, app.LastException.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
MessageBox.Show(this, app.LastException.Message + Environment.NewLine + app.LastException.StackTrace, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
@@ -183,7 +195,7 @@ namespace Il2CppInspectorGUI
else {
areaBusyIndicator.Visibility = Visibility.Hidden;
grdFirstPage.Visibility = Visibility.Visible;
MessageBox.Show(this, app.LastException.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
MessageBox.Show(this, app.LastException.Message + Environment.NewLine + app.LastException.StackTrace, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
}
}