本文整理汇总了C#中ActionType.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# ActionType.ToString方法的具体用法?C# ActionType.ToString怎么用?C# ActionType.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionType
的用法示例。
在下文中一共展示了ActionType.ToString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SystemAction
public SystemAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.SystemAction)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.TargetVar); //1
}
示例2: LogOut_Action
void LogOut_Action(string message, ActionType type)
{
// this.SetViewText(type.ToString()+":"+message);
if (type == ActionType.ServerConn)
{
this.SetViewText(type.ToString() + ":" + message);
}
else if (type == ActionType.ServerNotConn)
{
this.SetViewText(type.ToString() + ":" + message);
}
else if (type == ActionType.ServerDiscon)
{
this.SetViewText(type.ToString() + ":" + message);
}
}
示例3: PingAction
public PingAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.Ping)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.Host); //1
Details.Add(_actionData.Loops); //2
Details.Add(_actionData.TargetVar); //3
}
示例4: LabelAction
public LabelAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.Lable)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.LableName);
Details.Add(_actionData.Loops);
}
示例5: MessageAction
public MessageAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.MessageBox)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.Message); //1
Details.Add(_actionData.TimeOut); //2
}
示例6: SwitchAction
public SwitchAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.SwitchAction)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.Switch); //1
Details.Add(_actionData.CaseList); //2
Details.Add(_actionData.DefaultScript); //2
}
示例7: EnvironmentVariable
public EnvironmentVariable(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.DateTime)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.SourceVar); //1
Details.Add(_actionData.Value); //2
Details.Add(_actionData.Type); //3
}
示例8: AutoItUiAction
public AutoItUiAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.GuiAutomation)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.WindowTitle); //1
Details.Add(_actionData.ControlID); //2
Details.Add(_actionData.Text); //3
Details.Add(_actionData.TargetVariable); //4
}
示例9: SqliteAction
public SqliteAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.Sqlite)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.DbName); //1
Details.Add(_actionData.Options); //2
Details.Add(_actionData.Query); //2
Details.Add(_actionData.TargetVar); //3
}
示例10: EmailAction
public EmailAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.EmailAction)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.Recipient);
Details.Add(_actionData.From);
Details.Add(_actionData.Subject);
Details.Add(_actionData.Body);
Details.Add(_actionData.MailServer);
}
示例11: GetStandardIcon
/// <summary>
/// Try to find icon in Dictionary, that attached to the action. If find return it.
/// Else try to find icon in Gear working directory -> /Icons/, if find add it to Dictionary and return it.
/// Else return null.
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
public static Image GetStandardIcon(ActionType type)
{
if (standardIcons.ContainsKey(type))
return standardIcons[type];
Assembly thisExe = Assembly.GetExecutingAssembly();
Stream file = thisExe.GetManifestResourceStream(
string.Format("TopTeam.Gear.Icons.{0}.ico", type.ToString()));
Image image = null;
if (file != null)
image = Image.FromStream(file);
standardIcons.Add(type, image);
return image;
}
示例12: Actions
public List<Action> Actions(string boardId, ActionType? action, ActionType[] actions)
{
var request = new RestRequest("/1/boards/{board_id}", Method.GET);
request.AddUrlSegment("board_id", boardId);
if(actions!=null)
request.AddParameter("actions", string.Join(",", actions.ToList().Select(x => x.ToString().LowerFirst())));
if(action.HasValue)
request.AddParameter("actions", action.ToString().LowerFirst());
if(!action.HasValue && actions==null)
request.AddParameter("actions", "all");
var board = ServiceManager.Execute<Board>(request);
var response = board.Actions;
return response;
}
示例13: DictionaryAction
public DictionaryAction(ActionType type, ActionData actionData)
: base(Enums.ActionTypeId.DictionaryAction)
{
_actionData = actionData;
_type = type;
Details.Add(type.ToString());
Details.Add(_actionData.Name); //1
Details.Add(_actionData.Key); //1
Details.Add(_actionData.Value); //2
Details.Add(_actionData.Target); //3
Details.Add(_actionData.FileName); //4
}
示例14: SetInitialValues
private void SetInitialValues(string message, ActionType actionType,
MemeType? memeType = null)
{
if (memeType.Equals(MemeType.FuckYea)) {
this.title = actionType.ToString() + " action was successful.";
} else {
this.title = actionType.ToString() + " action caused an error.";
}
this.type = actionType;
this.image = memeType;
}
示例15: GetActionTypeString
private String GetActionTypeString(ActionType actionType)
{
return actionType.ToString().ToLower();
}