本文整理汇总了C#中ActivityType类的典型用法代码示例。如果您正苦于以下问题:C# ActivityType类的具体用法?C# ActivityType怎么用?C# ActivityType使用的例子? 这里精选的类代码示例或许可以为您提供帮助。
示例1: Activity
public Activity(string name, string path, string args, string t)
{
_name = name;
_pathfile = path;
_argument = args;
if (t.CompareTo("Wallpaper") == 0)
{
_type = ActivityType.Wallpaper;
}
else
{
if (t.CompareTo("ExeFile") == 0)
{
_type = ActivityType.ExeFile;
}
else
{
if (t.CompareTo("BatchFile") == 0)
{
_type = ActivityType.BatchFile;
}
}
}
}
原文链接:
http://www.jxszl.com/biancheng/C/556474.html