Exemple #1
0
        public async Task CheckForUpdate()
        {
            var latest = await Github.CheckForUpdate("andburn", "hdt-plugin-endgame", Version);

            if (latest != null)
            {
                EndGame.Notify("Plugin Update Available", $"[DOWNLOAD]({latest.html_url}) EndGame v{latest.tag_name}", 0,
                               "download", () => Process.Start(latest.html_url));
                Log.Info("Update available: v" + latest.tag_name, "EndGame");
            }
        }
 private async void Menu_ImportDecks_Click(object sender, RoutedEventArgs e)
 {
     await EndGame.ImportMetaDecks();
 }
 private void Menu_Settings_Click(object sender, RoutedEventArgs e)
 {
     EndGame.ShowSettings();
 }
Exemple #4
0
 public void OnUnload()
 {
     EndGame.CloseOpenNoteWindows();
     EndGame.CloseSettings();
     EndGame.CloseNotification();
 }
Exemple #5
0
 public void OnButtonPress()
 {
     EndGame.ShowSettings();
 }