public void UpdatePlayerAction(int playerId, ActionType?action, int amount)
        {
            var color = ConsoleColor.Green;

            switch (action)
            {
            case ActionType.Check:
            case ActionType.Blind:
            case ActionType.Call:
                color = ConsoleColor.Cyan;
                break;

            case ActionType.Raise:
                color = ConsoleColor.Yellow;
                break;

            case ActionType.Fold:
                color = ConsoleColor.Black;
                break;

            case ActionType.Show:
                break;

            case ActionType.Win:
                color = ConsoleColor.Blue;
                break;
            }
            var player = _players[playerId];

            player.BetAction.Draw(action?.ToString(), color);

            var bet = ((IList) new[] { ActionType.Blind, ActionType.Call, ActionType.Raise, ActionType.Win }).Contains(action) ? amount.ToString() : string.Empty;

            player.BetAmount.Draw(bet);
        }
        public MessageMaps(string actionTextResourceName,
                           ActionType?actionType   = null,
                           ProductType?productType = null,
                           ModuleType?moduleType   = null,
                           EntryType?entryType1    = null,
                           EntryType?entryType2    = null)
        {
            ActionTextResourceName = actionTextResourceName;

            if (actionType.HasValue)
            {
                ActionType = actionType.Value;
            }

            if (productType.HasValue)
            {
                ProductType = productType.Value;
            }

            if (moduleType.HasValue)
            {
                ModuleType = moduleType.Value;
            }

            if (entryType1.HasValue)
            {
                EntryType1 = entryType1.Value;
            }

            if (entryType2.HasValue)
            {
                EntryType2 = entryType2.Value;
            }
        }
        public ActionCreateInfo
        (
            StructureType? type = StructureType.TypeActionCreateInfo,
            void* next = null,
            ActionType? actionType = null,
            uint? countSubactionPaths = null,
            ulong* subactionPaths = null
        ) : this()
        {
            if (type is not null)
            {
                Type = type.Value;
            }

            if (next is not null)
            {
                Next = next;
            }

            if (actionType is not null)
            {
                ActionType = actionType.Value;
            }

            if (countSubactionPaths is not null)
            {
                CountSubactionPaths = countSubactionPaths.Value;
            }

            if (subactionPaths is not null)
            {
                SubactionPaths = subactionPaths;
            }
        }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Action" /> class.
 /// </summary>
 /// <param name="index">The queue index of the action.</param>
 /// <param name="type">type.</param>
 /// <param name="executed">true if the action was allready executed.</param>
 /// <param name="requestor">The index of the player this instruction came from.</param>
 public Action(int index = default(int), ActionType?type = default(ActionType?), bool executed = default(bool), int requestor = default(int))
 {
     this.Index     = index;
     this.Type      = type;
     this.Executed  = executed;
     this.Requestor = requestor;
 }
        public CommandType(ActionType type)
        {
            this.rl   = new ResourceLoader();
            this.type = type;

            switch (type)
            {
            case ActionType.PowerOn:
                this.name = rl.GetString("ActionType_PowerOn");
                break;

            case ActionType.PowerOff:
                this.name = rl.GetString("ActionType_PowerOff");
                break;

            case ActionType.BrightUp:
                this.name = rl.GetString("ActionType_BrightUp");
                break;

            case ActionType.BrightDown:
                this.name = rl.GetString("ActionType_BrightDown");
                break;

            case ActionType.SwitchColor:
                this.name = rl.GetString("ActionType_SwitchColor");
                break;

            default:
                throw new Exception("不受支持的操作类型");
            }
        }
        /// <summary>
        /// 查询所有
        /// </summary>
        /// <param name="uid">用户id</param>
        /// <param name="includeChildren">是否包含下级</param>
        /// <returns></returns>
        public List <SysQuotaDetaiDTO> GetAll(int uid, bool includeChildren, ActionType?actype, string quotype, string userCode, DateTime?beginDat, DateTime?endDate, int pageIndex, int pageSize, ref int totalCount, ref int pageCount)
        {
            string sqlWhere = string.Empty;

            if (actype != null)
            {
                sqlWhere += string.Format(" and sqd.ActionType={0}", (int)actype.Value);
            }
            if (!string.IsNullOrEmpty(quotype))
            {
                sqlWhere += string.Format(" and sq.QuotaType='{0}'", quotype);
            }
            if (!string.IsNullOrEmpty(userCode))
            {
                sqlWhere += string.Format(" and syu.Code like '%{0}%'", userCode);
            }
            if (beginDat != null && endDate != null)
            {
                sqlWhere += string.Format(" and sq.OccDate between '{0}' and  '{1}'", beginDat.Value, endDate.Value);
            }

            if (!includeChildren)
            {
                return(NotChildrenSource(uid, sqlWhere, pageIndex, pageSize, ref totalCount, ref pageCount));
            }
            return(ChildrenSource(uid, sqlWhere, pageIndex, pageSize, ref totalCount, ref pageCount));
        }
Exemple #7
0
 internal Operation(string name, bool?isDataAction, OperationDisplay display, Origin?origin, ActionType?actionType)
 {
     Name         = name;
     IsDataAction = isDataAction;
     Display      = display;
     Origin       = origin;
     ActionType   = actionType;
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="action_type"></param>
        /// <param name="sender"></param>
        /// <param name="receiver"></param>
        /// <param name="data"></param>
        public DataToken(ActionType?action_type = null, HostInfo sender = null, HostInfo receiver = null, T data = default(T))
        {
            this.action = action_type ?? ActionType.noack;

            this.sender   = sender ?? new HostInfo();
            this.receiver = receiver ?? new HostInfo("", "", "", "", "");

            this.data = data;
        }
        /// <summary>
        /// 获取实体历史列表
        /// </summary>
        /// <typeparam name="T">实体类型</typeparam>
        /// <param name="actionType">动作类型</param>
        /// <returns>实体历史列表</returns>
        public ICollection <IEntityHistory> GetEntityHistories <T>(ActionType?actionType = null) where T : PlainEntity
        {
            LoginInfo loginInfo = GetLoginInfo?.Invoke();
            ICollection <IEntityHistory>     entityHistories = new HashSet <IEntityHistory>();
            IEnumerable <DbEntityEntry <T> > entries         =
                from entry in this._dbContext.ChangeTracker.Entries <T>()
                where actionType == null || entry.State == (EntityState)actionType.Value
                select entry;

            foreach (DbEntityEntry <T> entry in entries)
            {
                ActionType actualActionType;
                IDictionary <string, object> beforeSnapshot = new Dictionary <string, object>();
                IDictionary <string, object> afterSnapshot  = new Dictionary <string, object>();
                if (entry.State == EntityState.Added)
                {
                    actualActionType = ActionType.Create;
                    foreach (string propertyName in entry.CurrentValues.PropertyNames)
                    {
                        DbPropertyEntry propertyEntry = entry.Property(propertyName);
                        afterSnapshot[propertyName] = propertyEntry.CurrentValue;
                    }
                }
                else if (entry.State == EntityState.Modified)
                {
                    actualActionType = ActionType.Update;
                    foreach (string propertyName in entry.OriginalValues.PropertyNames)
                    {
                        DbPropertyEntry propertyEntry = entry.Property(propertyName);
                        if (propertyEntry.OriginalValue?.ToString() != propertyEntry.CurrentValue?.ToString())
                        {
                            beforeSnapshot[propertyName] = propertyEntry.OriginalValue;
                            afterSnapshot[propertyName]  = propertyEntry.CurrentValue;
                        }
                    }
                }
                else if (entry.State == EntityState.Deleted)
                {
                    actualActionType = ActionType.Delete;
                    foreach (string propertyName in entry.OriginalValues.PropertyNames)
                    {
                        DbPropertyEntry propertyEntry = entry.Property(propertyName);
                        beforeSnapshot[propertyName] = propertyEntry.OriginalValue;
                    }
                }
                else
                {
                    continue;
                }

                EntityHistory entityHistory = new EntityHistory(actualActionType, typeof(T), entry.Entity.Id, beforeSnapshot, afterSnapshot, loginInfo?.LoginId, loginInfo?.RealName);
                entityHistories.Add(entityHistory);
            }

            return(entityHistories);
        }
 /// <summary>
 /// Initializes a new instance of the Operation class.
 /// </summary>
 /// <param name="name">The operation name.</param>
 /// <param name="display">The operation display name.</param>
 /// <param name="origin">Origin of the operation.</param>
 /// <param name="properties">Operation properties format.</param>
 /// <param name="isDataAction">Whether the operation applies to
 /// data-plane.</param>
 /// <param name="actionType">Indicates the action type. Possible values
 /// include: 'Internal'</param>
 public Operation(string name, OperationDisplay display = default(OperationDisplay), string origin = default(string), Properties properties = default(Properties), bool? isDataAction = default(bool?), ActionType? actionType = default(ActionType?))
 {
     Name = name;
     Display = display;
     Origin = origin;
     Properties = properties;
     IsDataAction = isDataAction;
     ActionType = actionType;
     CustomInit();
 }
Exemple #11
0
        public void ApplyEquality()
        {
            try
            {
                if (_isLastActionAnEquation && _lastBinaryOperation == null)
                {
                    var newValue = _displayNumber.ToDouble();
                    DisplayValue = newValue.ToString(_cultureInfo);

                    _lastOperand1 = newValue;
                    return;
                }

                var binaryOperationInfo = GetBinaryOperationInfo();
                if (binaryOperationInfo == null)
                {
                    return;
                }

                var value1          = binaryOperationInfo.Value1;
                var value2          = binaryOperationInfo.Value2;
                var binaryOperation = binaryOperationInfo.BinaryOperation;

                var executableInfo = binaryOperation.GetExecutableInfo(value1, value2);
                if (executableInfo.CanBeExecuted)
                {
                    var result = binaryOperation.Execute(value1, value2);

                    var displayValue = result.ToString(_cultureInfo);
                    _displayNumber = DisplayNumberFactory.Create(displayValue);
                    DisplayValue   = displayValue;

                    _lastOperand1        = value1;
                    _lastOperand2        = value2;
                    _lastBinaryOperation = binaryOperation;
                }
                else
                {
                    DisplayValue = executableInfo.Message;
                }

                _selectedBinaryOperation = null;
            }
            catch
            {
                DisplayValue = ErrorMessages.OperationFailed;
            }
            finally
            {
                _lastActionType = ActionType.Equality;
                _isLastActionAnBinaryOperation = false;
                _isLastActionAnEquation        = true;
            }
        }
        public MessageMapsDictionary Add(MessageAction action,
                                         ActionType?actionType   = null,
                                         EntryType?entryType1    = null,
                                         EntryType?entryType2    = null,
                                         ProductType?productType = null,
                                         ModuleType?moduleType   = null)
        {
            var map = new MessageMaps(action.ToString(), actionType, productType ?? _productType, moduleType ?? _moduleType, entryType1, entryType2);

            Actions.Add(new KeyValuePair <MessageAction, MessageMaps>(action, map));
            return(this);
        }
Exemple #13
0
 public static void SaveSettings(bool UseInTime, int hour, int minute, ActionType?type)
 {
     if (type != null)
     {
         Properties.Settings.Default.UseInTime = UseInTime;
         Properties.Settings.Default.Hour      = hour;
         Properties.Settings.Default.Minute    = minute;
         Properties.Settings.Default.Action    = type.ToString();
         Properties.Settings.Default.LastDate  = DateTime.Now.ToString();
         Properties.Settings.Default.Save();
     }
 }
Exemple #14
0
        private void ApplyBinaryOperation(IBinaryOperation binaryOperation)
        {
            if (_lastActionType == ActionType.BinaryOperation && !_isLastActionAnBinaryOperation)
            {
                ApplyEquality();
            }

            _selectedBinaryOperation = binaryOperation;
            _lastOperand1            = _displayNumber.ToDouble();

            _lastActionType                = ActionType.BinaryOperation;
            _isLastActionAnEquation        = false;
            _isLastActionAnBinaryOperation = true;
        }
        private void GetQuotaBill()
        {
            int    uid;
            bool   hasChildren;
            int    pageIndex    = 1;
            string typeStr      = Request.Params["type"];
            string quotypeStr   = Request.Params["quotype"];
            string beginDateStr = Request.Params["begindate"];
            string endDateStr   = Request.Params["enddate"];
            string userCode     = Request.Params["code"];

            if (!int.TryParse(Request.Params["uid"], out uid) ||
                !bool.TryParse(Request.Params["hasChildren"], out hasChildren))
            {
                AppGlobal.RenderResult(ApiCode.ParamEmpty);
                return;
            }
            if (!int.TryParse(Request.Params["pageIndex"], out pageIndex))
            {
                pageIndex = 1;
            }

            ActionType?parAcType = null;
            ActionType outActype;

            if (Enum.TryParse <ActionType>(typeStr, out outActype))
            {
                parAcType = outActype;
            }
            DateTime?begindate = null;
            DateTime?endData   = null;
            DateTime outBeginDate;
            DateTime outEndDate;

            if (DateTime.TryParse(beginDateStr, out outBeginDate))
            {
                begindate = outBeginDate;
            }
            if (DateTime.TryParse(endDateStr, out outEndDate))
            {
                endData = outEndDate;
            }

            int totalCount = 0;
            int pageCount  = 0;
            var source     = this.mSysQuotaDetailService.GetAll(uid, hasChildren, parAcType, quotypeStr, userCode, begindate, endData, pageIndex, 20, ref totalCount, ref pageCount);

            AppGlobal.RenderResult <List <SysQuotaDetaiDTO> >(ApiCode.Success, source, "", pageCount, totalCount);
        }
Exemple #16
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            SetControls(false);

            if (btnStart.Text == "Start")
            {
                ActionType?at   = GetActionType();
                bool       doit = true;
                if (nUPHour.Value == 0 && nUPMinute.Value == 0)
                {
                    DialogResult dialogResult = MessageBox.Show("Are you sure to perform Action immediatly?", at.ToString(), MessageBoxButtons.YesNo);
                    if (dialogResult == DialogResult.No)
                    {
                        doit = false;
                    }
                }
                if (doit == true)
                {
                    if (at != null)
                    {
                        BLShutdwn.CountdownChanged += (sender1, e1) => lbCountdown.Text = BLShutdwn.Countdown.ToString();
                        BLShutdwn.CountdownChanged += (sender1, e1) => windowsTaskbar.SetProgressValue(BLShutdwn.ProgressCountdown, 100);

                        BLShutdwn.EndCountdown = ActionTime(rBIn.Checked, Convert.ToInt32(nUPHour.Value), Convert.ToInt32(nUPMinute.Value));
                        BLShutdwn.Type         = at;
                        BLShutdwn.SaveSettings(rBIn.Checked, Convert.ToInt32(nUPHour.Value), Convert.ToInt32(nUPMinute.Value), at);
                        BLShutdwn.Action();

                        btnStart.Text   = "Pause";
                        btnStop.Enabled = true;
                    }
                    else
                    {
                        MessageBox.Show("You have not choosen an Action");
                    }
                }
            }
            else if (btnStart.Text == "Pause")
            {
                BLShutdwn.PauseCountdown = true;
                btnStart.Text            = "Resume";
            }
            else if (btnStart.Text == "Resume")
            {
                BLShutdwn.PauseCountdown = false;
                btnStart.Text            = "Pause";
            }
        }
    public override IEnumerator PerformTurn(Dictionary <int, FighterController> fighters, Dictionary <int, BattleAction> previousFigherActions, Action <BattleAction> callback)
    {
        if (target < 0)
        {
            target = getTarget(fighters);
        }

        ActionType?action = GetPlayerInput();

        while (action == null)
        {
            action = GetPlayerInput();
            yield return(null);
        }

        callback(new BattleAction(action ?? ActionType.NOTHING, target));
        yield break;
    }
Exemple #18
0
        public String Process(String action, ActionType actionType, ConfigurationDetail configurationDetail)
        {
            String     placeHolder = "${";
            ActionType?stackAction = null;

            switch (actionType)
            {
            case ActionType.CaseAction:
                placeHolder += "c:";
                stackAction  = actionType;
                break;

            case ActionType.ConditionAction:
                placeHolder += "q:";
                stackAction  = actionType;
                break;

            case ActionType.ConstantAction:
                placeHolder += "d:";
                break;

            case ActionType.ExpressionAction:
                placeHolder += "e:";
                stackAction  = actionType;
                break;

            default:
                throw new Exception("Failed to find type " + actionType);
            }

            if (stackAction.HasValue)
            {
                CheckStack(action, actionType);
            }
            placeHolder += action + "}";
            String value = Parse(placeHolder, configurationDetail, true);

            if (stackAction.HasValue)
            {
                RemoveStack(action, actionType);
            }

            return(value);
        }
Exemple #19
0
        private void PlayCard(Card card, Player opponent, ActionType?action)
        {
            if (Mana < card.Value)
            {
                throw new Exception($"Insufficient Mana ({Mana}) to pay for card {card}.");
            }
            Console.WriteLine($"{this} plays card {card} for {action}");
            Mana -= card.Value;
            hand.Remove(card);
            switch (action)
            {
            case ActionType.DAMAGE:
                opponent.ReceiveDamage(card.Value);
                break;

            case ActionType.HEALING:
                Heal(card.Value);
                break;

            default:
                throw new Exception($"Unrecognized game action: {action}");
            }
        }
 public Hockeyist(long id, long playerId, int teammateIndex, double mass, double radius, double x, double y,
         double speedX, double speedY, double angle, double angularSpeed, bool isTeammate, HockeyistType type,
         int strength, int endurance, int dexterity, int agility, double stamina, HockeyistState state,
         int originalPositionIndex, int remainingKnockdownTicks, int remainingCooldownTicks, int swingTicks,
         ActionType? lastAction, int? lastActionTick)
         : base(id, mass, radius, x, y, speedX, speedY, angle, angularSpeed) {
     this.playerId = playerId;
     this.teammateIndex = teammateIndex;
     this.isTeammate = isTeammate;
     this.type = type;
     this.strength = strength;
     this.endurance = endurance;
     this.dexterity = dexterity;
     this.agility = agility;
     this.stamina = stamina;
     this.state = state;
     this.originalPositionIndex = originalPositionIndex;
     this.remainingKnockdownTicks = remainingKnockdownTicks;
     this.remainingCooldownTicks = remainingCooldownTicks;
     this.swingTicks = swingTicks;
     this.lastAction = lastAction;
     this.lastActionTick = lastActionTick;
 }
Exemple #21
0
 public Hockeyist(long id, long playerId, int teammateIndex, double mass, double radius, double x, double y,
                  double speedX, double speedY, double angle, double angularSpeed, bool isTeammate, HockeyistType type,
                  int strength, int endurance, int dexterity, int agility, double stamina, HockeyistState state,
                  int originalPositionIndex, int remainingKnockdownTicks, int remainingCooldownTicks, int swingTicks,
                  ActionType?lastAction, int?lastActionTick)
     : base(id, mass, radius, x, y, speedX, speedY, angle, angularSpeed)
 {
     this.playerId                = playerId;
     this.teammateIndex           = teammateIndex;
     this.isTeammate              = isTeammate;
     this.type                    = type;
     this.strength                = strength;
     this.endurance               = endurance;
     this.dexterity               = dexterity;
     this.agility                 = agility;
     this.stamina                 = stamina;
     this.state                   = state;
     this.originalPositionIndex   = originalPositionIndex;
     this.remainingKnockdownTicks = remainingKnockdownTicks;
     this.remainingCooldownTicks  = remainingCooldownTicks;
     this.swingTicks              = swingTicks;
     this.lastAction              = lastAction;
     this.lastActionTick          = lastActionTick;
 }
Exemple #22
0
        private void HandleDefferedAction()
        {
            if (Focused != null)
            {
                switch (m_deferredAction)
                {
                case ActionType.Take:
                    if (Focused.Take() && Inventory.Add(Focused.Item))
                    {
                        Destroy(Focused.gameObject);
                    }
                    break;

                case ActionType.Use:
                    Focused.Use(m_itemBeingHeld);
                    break;

                default:
                    break;
                }
            }

            m_deferredAction = null;
        }
 internal ManagedRuleOverride(string ruleId, ManagedRuleEnabledState?enabledState, ActionType?action)
 {
     RuleId       = ruleId;
     EnabledState = enabledState;
     Action       = action;
 }
Exemple #24
0
 public SqlBuilder SelectCount()
 {
     _actionType = ActionType.Select;
     _columns.Add(COUNT);
     return this;
 }
Exemple #25
0
 public SqlBuilder Update(string table)
 {
     _table = table;
     _actionType = ActionType.Update;
     return this;
 }
Exemple #26
0
 // Audit logs
 public static IAsyncEnumerable <IReadOnlyCollection <RestAuditLogEntry> > GetAuditLogsAsync(IGuild guild, BaseDiscordClient client,
                                                                                             ulong?from, int?limit, RequestOptions options, ulong?userId = null, ActionType?actionType = null)
 {
     return(new PagedAsyncEnumerable <RestAuditLogEntry>(
                DiscordConfig.MaxAuditLogEntriesPerBatch,
                async(info, ct) =>
     {
         var args = new GetAuditLogsParams
         {
             Limit = info.PageSize
         };
         if (info.Position != null)
         {
             args.BeforeEntryId = info.Position.Value;
         }
         if (userId.HasValue)
         {
             args.UserId = userId.Value;
         }
         if (actionType.HasValue)
         {
             args.ActionType = (int)actionType.Value;
         }
         var model = await client.ApiClient.GetAuditLogsAsync(guild.Id, args, options);
         return model.Entries.Select((x) => RestAuditLogEntry.Create(client, model, x)).ToImmutableArray();
     },
                nextPage: (info, lastPage) =>
     {
         if (lastPage.Count != DiscordConfig.MaxAuditLogEntriesPerBatch)
         {
             return false;
         }
         info.Position = lastPage.Min(x => x.Id);
         return true;
     },
                start: from,
                count: limit
                ));
 }
Exemple #27
0
 public async Task <IReadOnlyCollection <IAuditLogEntry> > GetAuditLogsAsync(int limit = 100, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null, ulong?beforeId = null, ulong?userId = null, ActionType?actionType = null)
 => (await RestGuild.GetAuditLogsAsync(limit, options, beforeId, userId, actionType).FlattenAsync())
 .ToArray();
 public abstract Task <bool> UpdateMissionProgression(Observation observation, ObservationStatement statement, ActionType?type);
Exemple #29
0
 //Audit logs
 /// <summary>
 ///     Gets the specified number of audit log entries for this guild.
 /// </summary>
 /// <param name="limit">The number of audit log entries to fetch.</param>
 /// <param name="options">The options to be used when sending the request.</param>
 /// <param name="beforeId">The audit log entry ID to get entries before.</param>
 /// <param name="actionType">The type of actions to filter.</param>
 /// <param name="userId">The user ID to filter entries for.</param>
 /// <returns>
 ///     A task that represents the asynchronous get operation. The task result contains a read-only collection
 ///     of the requested audit log entries.
 /// </returns>
 public IAsyncEnumerable <IReadOnlyCollection <RestAuditLogEntry> > GetAuditLogsAsync(int limit, RequestOptions options = null, ulong?beforeId = null, ulong?userId = null, ActionType?actionType = null)
 => GuildHelper.GetAuditLogsAsync(this, Discord, beforeId, limit, options, userId: userId, actionType: actionType);
Exemple #30
0
 async Task <IReadOnlyCollection <IAuditLogEntry> > IGuild.GetAuditLogsAsync(int limit, CacheMode cacheMode, RequestOptions options,
                                                                             ulong?beforeId, ulong?userId, ActionType?actionType)
 {
     if (cacheMode == CacheMode.AllowDownload)
     {
         return((await GetAuditLogsAsync(limit, options, beforeId: beforeId, userId: userId, actionType: actionType).FlattenAsync().ConfigureAwait(false)).ToImmutableArray());
     }
     else
     {
         return(ImmutableArray.Create <IAuditLogEntry>());
     }
 }
Exemple #31
0
 public SqlBuilder Delete()
 {
     _actionType = ActionType.Delete;
     return this;
 }
Exemple #32
0
 public static async Task <List <RestAuditLogEntry> > GetAuditLogDataAsync(this SocketGuild guild, int count = 5, ActionType?actionType = null)
 {
     return((await guild.GetAuditLogsAsync(count, actionType: actionType).FlattenAsync().ConfigureAwait(false)).ToList());
 }
Exemple #33
0
 /// <summary>
 /// Initializes a new instance of the Action class.
 /// </summary>
 /// <param name="actionType">The type of the action. Possible values
 /// include: 'EmailContacts', 'AutoRenew'</param>
 public Action(ActionType?actionType = default(ActionType?))
 {
     ActionType = actionType;
     CustomInit();
 }
Exemple #34
0
 public Move(Card card, ActionType?action)
 {
     this.Card   = card;
     this.Action = action;
 }
Exemple #35
0
 public SqlBuilder Select(string column)
 {
     _columns.Add(column);
     _actionType = ActionType.Select;
     return this;
 }
Exemple #36
0
 public SqlBuilder InsertInto(string table)
 {
     _table = table;
     _actionType = ActionType.Insert;
     return this;
 }