Refactoring command args and change the signal instance implement.

This commit is contained in:
qianlifeng
2014-10-21 18:16:05 +08:00
parent 1cf79d8fbc
commit be33ac3c4f
14 changed files with 712 additions and 149 deletions

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using Wox.Helper;
namespace Wox.CommandArgs
{
public class InstallPluginCommandArg : ICommandArg
{
public string Command
{
get { return "installplugin"; }
}
public void Execute(IList<string> args)
{
if (args.Count > 0)
{
var path = args[0];
if (!File.Exists(path))
{
MessageBox.Show("Plugin " + path + " didn't exist");
return;
}
PluginInstaller.Install(path);
}
}
}
}