diff --git a/BGS/GenericDiscordLog.cs b/BGS/GenericDiscordLog.cs
index af86147..1301dd7 100644
--- a/BGS/GenericDiscordLog.cs
+++ b/BGS/GenericDiscordLog.cs
@@ -235,5 +235,9 @@ namespace EliteBGS.BGS {
return log.ToString();
}
+
+ public override string ToString() {
+ return "Generic Log";
+ }
}
}
diff --git a/BGS/NonaDiscordLog.cs b/BGS/NonaDiscordLog.cs
index 07c4c31..6a91640 100644
--- a/BGS/NonaDiscordLog.cs
+++ b/BGS/NonaDiscordLog.cs
@@ -229,5 +229,9 @@ namespace EliteBGS.BGS {
return log.ToString();
}
+
+ public override string ToString() {
+ return "Nova Navy Log";
+ }
}
}
diff --git a/MainWindow.xaml b/MainWindow.xaml
index 7aa805d..27140a5 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -58,13 +58,16 @@
-
-
+
+
+
-
+
+
+
-
+
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
index 5d40abb..47e1001 100644
--- a/MainWindow.xaml.cs
+++ b/MainWindow.xaml.cs
@@ -38,6 +38,10 @@ namespace EliteBGS {
report.OnLog += Report_OnLog;
+ LogType.Items.Add(new NonaDiscordLog());
+ LogType.Items.Add(new GenericDiscordLog());
+ LogType.SelectedIndex = 0;
+
api = new API(config.ConfigPath);
journal = new PlayerJournal(config.Global.JournalLocation);
@@ -155,7 +159,7 @@ namespace EliteBGS {
}
private void GenerateDiscord_Click(object sender, RoutedEventArgs e) {
- GenericDiscordLog discord = new GenericDiscordLog();
+ IDiscordLogGenerator discord = LogType.SelectedItem as IDiscordLogGenerator;
string report = discord.GenerateDiscordLog(Report);
DiscordLog.Text = report;