本文整理汇总了C#中MainWindow.CliTag方法的典型用法代码示例。如果您正苦于以下问题:C# MainWindow.CliTag方法的具体用法?C# MainWindow.CliTag怎么用?C# MainWindow.CliTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainWindow
的用法示例。
在下文中一共展示了MainWindow.CliTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessCommandLine
/// <summary>
/// Processes the arguments from the command line to break it into the command to execute and the path of the folder
/// </summary>
/// <param name="commands">Arguments from command line</param>
/// <param name="main">Reference to MainWindow Class</param>
public static void ProcessCommandLine(string[] commands, MainWindow main)
{
string flag = commands[0];
// Get full path from command line
string path = "";
for (int i = 1; i < commands.Length; i++)
{
path += commands[i] + " ";
}
string longPath = GetLongPathName(path);
if (flag.Equals("-TFolder"))
{
//Shell Context Menu clicked for Folders ( Tag )
main.CliTag(longPath);
}
else if (flag.Equals("-UTFolder"))
{
//Shell Context Menu clicked for Folders ( Untag )
main.CliUntag(longPath);
}
else if (flag.Equals("-CleanMeta"))
{
// Shell Context Menu clicked for Folders (Clean)
main.CliClean(longPath);
}
}