コード例 #1
0
 protected void SetState(Contract.State newState);
コード例 #2
0
        private void BuildContractStringsAndMargin(Boolean ForceUpdateMargin=false)
        {
            strAlarmEventName = "Contract";
            if (ContractSystem.Instance == null || lstContracts.Count == 0)
            {
                strAlarmName = "Contract alarm";
                strAlarmNotes = "No Contracts Available";
            }
            else
            {
                GenerateContractStringsFromContract(lstContracts[intSelectedContract], out strAlarmName, out strAlarmNotes);

                if (ForceUpdateMargin || contractLastState != lstContracts[intSelectedContract].ContractState)
                {
                    if (lstContracts[intSelectedContract].ContractState == Contract.State.Active)
                        timeMargin.BuildFromUT(settings.AlarmOnContractDeadlineMargin);
                    else
                        timeMargin.BuildFromUT(settings.AlarmOnContractExpireMargin);

                    contractLastState = lstContracts[intSelectedContract].ContractState;
                }
            }
        }
コード例 #3
0
 public static Contract Generate(Type contractType, Contract.ContractPrestige difficulty, int seed, Contract.State state);