diff --git a/DiscordBotUI/DiscordBotUI/ViewModels/OnlinePlugin.cs b/DiscordBotUI/DiscordBotUI/ViewModels/OnlinePlugin.cs new file mode 100644 index 0000000..0545e38 --- /dev/null +++ b/DiscordBotUI/DiscordBotUI/ViewModels/OnlinePlugin.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DiscordBotUI.ViewModels +{ + public class OnlinePlugin + { + public string Name { get; set; } + public string Description { get; set; } + public string Version { get; set; } + + public OnlinePlugin(string name, string description, string version) { + Name = name; + Description = description; + Version = version; + + } + } +} diff --git a/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml b/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml index 2246893..f783e49 100644 --- a/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml +++ b/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml @@ -9,7 +9,8 @@ - + + diff --git a/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml.cs b/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml.cs index b610662..f623e0f 100644 --- a/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml.cs +++ b/DiscordBotUI/DiscordBotUI/Views/HomePage.axaml.cs @@ -59,11 +59,18 @@ public partial class HomePage : Window private async void SettingsMenuClick(object? sender, Avalonia.Interactivity.RoutedEventArgs e) { - await new SettingsPage().ShowDialog(this); + //await new SettingsPage().ShowDialog(this); + new SettingsPage().Show(); } private async void PluginsMenuClick(object? sender, Avalonia.Interactivity.RoutedEventArgs e) { - await new PluginsPage().ShowDialog(this); + //await new PluginsPage().ShowDialog(this); + new PluginsPage().Show(); + } + + private void NewPluginsMenuClick(object? sender, Avalonia.Interactivity.RoutedEventArgs e) + { + new PluginInstaller().Show(); } } \ No newline at end of file diff --git a/DiscordBotUI/DiscordBotUI/Views/PluginInstaller.axaml b/DiscordBotUI/DiscordBotUI/Views/PluginInstaller.axaml new file mode 100644 index 0000000..ac444b9 --- /dev/null +++ b/DiscordBotUI/DiscordBotUI/Views/PluginInstaller.axaml @@ -0,0 +1,33 @@ + + + + + + + + + + + +