Replace all obsoleted method

This commit is contained in:
qianlifeng
2014-07-21 19:48:17 +08:00
parent 88208285a4
commit 4e87211d39
5 changed files with 11 additions and 11 deletions

View File

@@ -53,8 +53,8 @@ namespace Wox.Plugin.BrowserBookmark
Score = 5, Score = 5,
Action = (e) => Action = (e) =>
{ {
context.HideApp(); context.API.HideApp();
context.ShellRun(c.Url); context.API.ShellRun(c.Url);
return true; return true;
} }
}).ToList(); }).ToList();

View File

@@ -45,7 +45,7 @@ namespace Wox.Plugin.PluginManagement
{ {
Action = e => Action = e =>
{ {
context.ChangeQuery("wpm install "); context.API.ChangeQuery("wpm install ");
return false; return false;
} }
}); });
@@ -53,7 +53,7 @@ namespace Wox.Plugin.PluginManagement
{ {
Action = e => Action = e =>
{ {
context.ChangeQuery("wpm uninstall "); context.API.ChangeQuery("wpm uninstall ");
return false; return false;
} }
}); });
@@ -61,7 +61,7 @@ namespace Wox.Plugin.PluginManagement
{ {
Action = e => Action = e =>
{ {
context.ChangeQuery("wpm list"); context.API.ChangeQuery("wpm list");
return false; return false;
} }
}); });
@@ -179,7 +179,7 @@ namespace Wox.Plugin.PluginManagement
} }
finally finally
{ {
context.StopLoadingBar(); context.API.StopLoadingBar();
} }
} }
}); });

View File

@@ -140,7 +140,7 @@ namespace Wox.Plugin.SystemPlugins.CMD
private void ExecuteCmd(string cmd) private void ExecuteCmd(string cmd)
{ {
if (context.ShellRun(cmd)) if (context.API.ShellRun(cmd))
CMDStorage.Instance.AddCmdHistory(cmd); CMDStorage.Instance.AddCmdHistory(cmd);
} }

View File

@@ -68,8 +68,8 @@ namespace Wox.Plugin.SystemPlugins.Program
Score = 0, Score = 0,
Action = (e) => Action = (e) =>
{ {
context.HideApp(); context.API.HideApp();
context.ShellRun(c.ExecutePath); context.API.ShellRun(c.ExecutePath);
return true; return true;
} }
}).ToList(); }).ToList();

View File

@@ -38,7 +38,7 @@ namespace Wox.Plugin.SystemPlugins
IcoPath = "Images/work.png", IcoPath = "Images/work.png",
Action = (c) => Action = (c) =>
{ {
context.ChangeQuery(metadataCopy.ActionKeyword + " "); context.API.ChangeQuery(metadataCopy.ActionKeyword + " ");
return false; return false;
}, },
}; };
@@ -54,7 +54,7 @@ namespace Wox.Plugin.SystemPlugins
IcoPath = "Images/work.png", IcoPath = "Images/work.png",
Action = (c) => Action = (c) =>
{ {
context.ChangeQuery(n.ActionWord + " "); context.API.ChangeQuery(n.ActionWord + " ");
return false; return false;
} }
})); }));