protected void AddUpdateNotice(TitanfallMod mod)
        {
            if (mod.RequiresUpdate)
            {
                TextBlock title = new TextBlock();
                title.Inlines.Add(new Bold(new Run("Update Available!")));
                DetailsPanel.Children.Add(title);

                TextBlock content = new TextBlock();
                content.Text = "An update for this mod is available and can be downloaded from it's page on Titanfall Mods.";
                DetailsPanel.Children.Add(content);

                DetailsPanel.Children.Add(new TextBlock());                   // Divider
            }
        }
        protected void AddWarnings(TitanfallMod mod)
        {
            List <string> warnings = mod.GetWarnings();

            if (warnings.Count > 0)
            {
                TextBlock title = new TextBlock();
                title.Inlines.Add(new Bold(new Run("Warnings")));
                DetailsPanel.Children.Add(title);

                foreach (string warning in warnings)
                {
                    TextBlock warningBlock = new TextBlock();
                    warningBlock.Text = warning;
                    DetailsPanel.Children.Add(warningBlock);
                }
            }
        }
        protected void AddErrors(TitanfallMod mod)
        {
            List <string> errors = mod.GetErrors();

            if (errors.Count > 0)
            {
                TextBlock title = new TextBlock();
                title.Inlines.Add(new Bold(new Run("Errors")));
                DetailsPanel.Children.Add(title);

                foreach (string error in errors)
                {
                    TextBlock errorBlock = new TextBlock();
                    errorBlock.Text = error;
                    DetailsPanel.Children.Add(errorBlock);
                }
            }
        }
 private void ModDatabase_OnModLoaded(TitanfallMod mod)
 {
     ModsPanel.Children.Add(new Controls.ModItem(mod));
 }
 private void TitanfallMod_OnStatusUpdateException(TitanfallMod mod, Exception e)
 {
     AddEvent($"Encountered an exception while loading mod {mod.Definition.Name}: {e.Message}");
 }