Winforms launcher beginnings.

This commit is contained in:
Matthew Bowra-Dean
2010-10-26 03:04:49 +13:00
committed by Paul Chote
parent d93c42e89c
commit 439c366ba2
13 changed files with 5556 additions and 21 deletions

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace OpenRA.Launcher
{
public partial class ConfigureModsDialog : Form
{
string[] currentMods;
string[] allMods;
public ConfigureModsDialog(string[] currentMods)
{
InitializeComponent();
Util.UacShield(installButton);
this.currentMods = currentMods;
var response = UtilityProgram.Call("--list-mods");
if (!response.IsError)
allMods = response.ResponseLines;
else
throw new Exception(string.Format("Could not list mods: {0}", response.Response));
}
private void InstallMod(object sender, EventArgs e)
{
if (installModDialog.ShowDialog() != DialogResult.OK) return;
UtilityProgram.CallWithAdmin("--install-mods", "foo.zip");
}
}
}