当前位置: 首页>>代码示例>>C#>>正文


C# ActionType.ToString方法代码示例

本文整理汇总了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
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:9,代码来源:SystemAction.cs

示例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);
            }

        }
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:18,代码来源:MainActivity.cs

示例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
 }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:10,代码来源:PingAction.cs

示例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);
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:10,代码来源:LableAction.cs

示例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
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:10,代码来源:MessageAction.cs

示例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
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:11,代码来源:SwitchAction.cs

示例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
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:11,代码来源:EnvironmentVariable.cs

示例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
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:12,代码来源:AutoItUiAction.cs

示例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
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:12,代码来源:SqliteAction.cs

示例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);
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:13,代码来源:EmailAction.cs

示例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;
        }
开发者ID:roman-dudin,项目名称:Gear,代码行数:22,代码来源:AttachIcon.cs

示例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;
        }
开发者ID:detroitpro,项目名称:Trello.net,代码行数:19,代码来源:GetAction.cs

示例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
        }
开发者ID:roikoazulay,项目名称:AutoLaunch,代码行数:13,代码来源:DictionaryAction.cs

示例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;
        }
开发者ID:erpframework,项目名称:FileSync,代码行数:11,代码来源:ActionException.cs

示例15: GetActionTypeString

 private String GetActionTypeString(ActionType actionType)
 {
     return actionType.ToString().ToLower();
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:4,代码来源:TwitterPublisher.cs


注:本文中的ActionType.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。