public void Show(bool show)
 {
     Signatures.Clear();
     if (show)
     {
         foreach (var s in Model.Signatures)
         {
             Signatures.Add(new SignatureViewModel(s.Value));
         }
     }
 }
예제 #2
0
        internal void CreateSignatures()
        {
            Signatures.Add((int)SignatureNames.OsuBase, new SigEx
            {
                Name    = "OsuBase",
                Pattern = UnpackStr("F801740483"),
                UseMask = false
            });
            Signatures.Add((int)SignatureNames.GameMode, new SigEx
            {
                ParentSig      = Signatures[(int)SignatureNames.OsuBase],
                Offset         = -51,
                PointerOffsets = { 0 }
            });

            // TODO: Retry signature is incorrect - it only increases when using quick-retry key in-game
            Signatures.Add((int)SignatureNames.Retrys, new SigEx
            {
                ParentSig      = Signatures[(int)SignatureNames.OsuBase],
                Offset         = -51,
                PointerOffsets = { 4 }
            });

            CreateBeatmapDataSignatures();

            Signatures.Add((int)SignatureNames.OsuStatus, new SigEx
            {
                Name           = "OsuStatus",
                Pattern        = UnpackStr("4883F804731E"),
                Offset         = -4,
                PointerOffsets = { 0 },
                UseMask        = false
            });
            Signatures.Add((int)SignatureNames.PlayTime, new SigEx
            {
                Name           = "PlayTime",
                Pattern        = UnpackStr("5E5F5DC3A100000000890004"),
                Mask           = "xxxxx????x?x",
                Offset         = 5,
                PointerOffsets = { 0 }
            });
            Signatures[(int)SignatureNames.Mods] = new SigEx
            {
                Name           = "mods",
                Pattern        = UnpackStr("810D0000000000080000"),
                Mask           = "xx????xxxx",
                Offset         = 2,
                PointerOffsets = { 0 },
                UseMask        = true,
            };

            CreateSkinSignatures();
            CreatePlaySignatures();
        }
        internal void CreateSignatures()
        {
            Signatures.Add((int)SignatureNames.OsuBase, new SigEx
            {
                Name    = "OsuBase",
                Pattern = UnpackStr("F80174048365"),
                UseMask = false
            });
            Signatures.Add((int)SignatureNames.GameMode, new SigEx
            {
                ParentSig      = Signatures[(int)SignatureNames.OsuBase],
                Offset         = -51,
                PointerOffsets = { 0 }
            });

            Signatures.Add((int)SignatureNames.Retrys, new SigEx
            {
                ParentSig      = Signatures[(int)SignatureNames.OsuBase],
                Offset         = -51,
                PointerOffsets = { 8 }
            });

            CreateBeatmapDataSignatures();

            Signatures.Add((int)SignatureNames.OsuStatus, new SigEx
            {
                Name           = "OsuStatus",
                ParentSig      = Signatures[(int)SignatureNames.OsuBase],
                Offset         = -60,
                PointerOffsets = { 0 }
            });
            Signatures.Add((int)SignatureNames.PlayTime, new SigEx
            {
                Name           = "PlayTime",
                ParentSig      = Signatures[(int)SignatureNames.OsuBase],
                Offset         = 100,
                PointerOffsets = { -16 }
            });
            Signatures[(int)SignatureNames.Mods] = new SigEx
            {
                Name           = "mods",
                Pattern        = UnpackStr("810D0000000000080000"),
                Mask           = "xx????xxxx",
                Offset         = 2,
                PointerOffsets = { 0 },
                UseMask        = true,
            };

            CreateSkinSignatures();
            CreatePlaySignatures();
            CreateTourneySignatures();
        }
예제 #4
0
        private async void OnGetSignatures(object p)
        {
            if (SelectedElection == null)
            {
                return;
            }

            Signatures.Clear();
            List <Signature> result = await DataService.GetSignatures(SelectedElection.Id, Skip, Take);

            foreach (Signature sig in result)
            {
                Signatures.Add(mapper.Map <Signature, SignatureViewModel>(sig));
            }
        }
 private void CreateTourneySignatures()
 {
     Signatures.Add((int)SignatureNames.TourneyBase, new SigEx
     {
         Name    = "TourneyBase",
         Pattern = UnpackStr("7D15A10000000085C0"),
         Mask    = "xxx????xx",
         Offset  = -0xB
     });
     Signatures.Add((int)SignatureNames.TourneyIpcState, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.TourneyBase],
         PointerOffsets = { 4, 0x54 }
     });
     Signatures.Add((int)SignatureNames.TourneyLeftStars, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.TourneyBase],
         PointerOffsets = { 4, 0x1C, 0x2C }
     });
     Signatures.Add((int)SignatureNames.TourneyRightStars, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.TourneyBase],
         PointerOffsets = { 4, 0x20, 0x2C }
     });
     Signatures.Add((int)SignatureNames.TourneyBO, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.TourneyBase],
         PointerOffsets = { 4, 0x20, 0x30 }
     });
     Signatures.Add((int)SignatureNames.TourneyStarsVisible, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.TourneyBase],
         PointerOffsets = { 4, 0x20, 0x38 }
     });
     Signatures.Add((int)SignatureNames.TourneyScoreVisible, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.TourneyBase],
         PointerOffsets = { 4, 0x20, 0x39 }
     });
 }
예제 #6
0
 public OsuMemoryReader()
 {
     Signatures.Add(_artistId, new SigEx
     {
         ParentSig      = Signatures[_currentBeatmapDataId],
         PointerOffsets = { 0x18 }
     });
     Signatures.Add(_titleId, new SigEx
     {
         ParentSig      = Signatures[_currentBeatmapDataId],
         PointerOffsets = { 0x24 }
     });
     Signatures.Add(_creatorId, new SigEx
     {
         ParentSig      = Signatures[_currentBeatmapDataId],
         PointerOffsets = { 0x78 }
     });
     Signatures.Add(_versionId, new SigEx
     {
         ParentSig      = Signatures[_currentBeatmapDataId],
         PointerOffsets = { 0xAC }
     });
 }
예제 #7
0
        private void CreatePlaySignatures()
        {
            Signatures.Add((int)SignatureNames.PlayContainer, new SigEx
            {
                //avaliable only when playing;
                //need to reset on each play
                Name           = "PlayContainer",
                Pattern        = UnpackStr("85C9741F8D55F08B01"),
                Offset         = -4,
                PointerOffsets = { 0 },
                UseMask        = false
            });

            Signatures.Add((int)SignatureNames.PlayingMods, new SigEx
            {
                //Complex - 2 xored ints
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 28 }
            });
            Signatures.Add((int)SignatureNames.PlayerName, new SigEx
            {
                //char[]
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 40 }
            });
            Signatures.Add((int)SignatureNames.HitErrors, new SigEx
            {
                //int[]
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 56 }
            });
            Signatures.Add((int)SignatureNames.Combo, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 144 }
            });
            Signatures.Add((int)SignatureNames.ComboMax, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 104 }
            });
            Signatures.Add((int)SignatureNames.Hit100c, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 132 }
            });
            Signatures.Add((int)SignatureNames.Hit300c, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 134 }
            });
            Signatures.Add((int)SignatureNames.Hit50c, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 136 }
            });
            Signatures.Add((int)SignatureNames.HitGeki, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 138 }
            });
            Signatures.Add((int)SignatureNames.HitKatsu, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 140 }
            });
            Signatures.Add((int)SignatureNames.HitMissc, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 142 }
            });
            Signatures.Add((int)SignatureNames.Score, new SigEx
            {
                //int
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 116 }
            });
            Signatures.Add((int)SignatureNames.PlayingGameMode, new SigEx
            {
                //int
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 100 }
            });
            Signatures.Add((int)SignatureNames.Acc, new SigEx
            {
                //double
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 72, 20 }
            });
            Signatures.Add((int)SignatureNames.PlayerHp, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 64, 28 }
            });
            Signatures.Add((int)SignatureNames.PlayerHpSmoothed, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 64, 20 }
            });
        }
예제 #8
0
 private void CreateBeatmapDataSignatures()
 {
     Signatures.Add((int)SignatureNames.CurrentBeatmapData, new SigEx
     {
         Name           = "CurrentBeatmapData",
         ParentSig      = Signatures[(int)SignatureNames.OsuBase],
         Offset         = -12,
         PointerOffsets = { 0 },
         UseMask        = false
     });
     Signatures.Add((int)SignatureNames.MapId, new SigEx
     {
         //int
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 196 }
     });
     Signatures.Add((int)SignatureNames.MapSetId, new SigEx
     {
         //int
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 200 }
     });
     Signatures.Add((int)SignatureNames.MapString, new SigEx
     {
         //string
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 124 }
     });
     Signatures.Add((int)SignatureNames.MapFolderName, new SigEx
     {
         //string
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 116 }
     });
     Signatures.Add((int)SignatureNames.MapOsuFileName, new SigEx
     {
         //string
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 140 }
     });
     Signatures.Add((int)SignatureNames.MapMd5, new SigEx
     {
         //string
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 108 }
     });
     Signatures.Add((int)SignatureNames.MapAr, new SigEx
     {
         //float
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 44 }
     });
     Signatures.Add((int)SignatureNames.MapCs, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 48 }
     });
     Signatures.Add((int)SignatureNames.MapHp, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 52 }
     });
     Signatures.Add((int)SignatureNames.MapOd, new SigEx
     {
         ParentSig      = Signatures[(int)SignatureNames.CurrentBeatmapData],
         PointerOffsets = { 56 }
     });
 }
예제 #9
0
 public void AddSignature(object signature)
 {
     Signatures.Add((DocumentSignature)signature);
 }
예제 #10
0
 public void Sign(Party signingParty)
 {
     Signatures.Add(signingParty.PsuedoSignature);
 }
        public void LoadDummyData()
        {
            #region user dummy data
            Users.Add(new User()
            {
                Id       = 1,
                Name     = "Admin",
                Email    = "*****@*****.**",
                Jabatan  = "Komisaris",
                Password = PasswordHash.GetHash("12345678"),
                Role     = EUserRole.Admin
            });
            Users.Add(new User()
            {
                Id       = 2,
                Name     = "AR",
                Email    = "*****@*****.**",
                Jabatan  = "Management Resiko",
                Password = PasswordHash.GetHash("12345678"),
                Role     = EUserRole.AR
            });
            Users.Add(new User()
            {
                Id       = 3,
                Name     = "User",
                Email    = "*****@*****.**",
                Jabatan  = "Karyawan",
                Password = PasswordHash.GetHash("12345678"),
                Role     = EUserRole.User
            });
            Users.Add(new User()
            {
                Id       = 4,
                Name     = "FBS",
                Email    = "*****@*****.**",
                Jabatan  = "Keuangan",
                Password = PasswordHash.GetHash("12345678"),
                Role     = EUserRole.FBS
            });
            #endregion

            #region customer dummy data
            Customers.Add(new Customer()
            {
                Id         = 1,
                CustomerNo = "1236969",
                Name       = "PT Kera Sakti",
                Email      = "*****@*****.**",
                Address    = "Gunung kayangan",
                NPWP       = "01010169"
            });
            Customers.Add(new Customer()
            {
                Id         = 2,
                CustomerNo = "4616111",
                Name       = "Cv Kamehameha Batam",
                Email      = "*****@*****.**",
                Address    = "Pulau roshi",
                NPWP       = "222333444"
            });
            Customers.Add(new Customer()
            {
                Id         = 3,
                CustomerNo = "3456789",
                Name       = "PT Santai Menyantai",
                Email      = "*****@*****.**",
                Address    = "Jalan malas",
                NPWP       = "55667788"
            });
            Customers.Add(new Customer()
            {
                Id         = 4,
                CustomerNo = "3456789",
                Name       = "PT Ninja Gadungan",
                Email      = "*****@*****.**",
                Address    = "Konohahaha",
                NPWP       = "777888999"
            });
            #endregion

            #region product dummy data
            Products.Add(new Product()
            {
                Id            = 1,
                MaterialNo    = "001",
                MaterialName  = "Premium",
                MaterialGroup = "001"
            });
            Products.Add(new Product()
            {
                Id            = 2,
                MaterialNo    = "002",
                MaterialName  = "Pertalite",
                MaterialGroup = "002"
            });
            Products.Add(new Product()
            {
                Id            = 3,
                MaterialNo    = "003",
                MaterialName  = "Solar",
                MaterialGroup = "003"
            });
            Products.Add(new Product()
            {
                Id            = 4,
                MaterialNo    = "004",
                MaterialName  = "Pertamax",
                MaterialGroup = "004"
            });
            #endregion

            #region signature dummy data
            Signatures.Add(new Signature()
            {
                Id           = 1,
                Name1        = "Basuki cahaya purnama",
                Name2        = "Eric Thoir",
                Position1    = "Komisaris Utama",
                Position2    = "Menteri BUMN",
                DocumentType = "CA"
            });
            Signatures.Add(new Signature()
            {
                Id           = 2,
                Name1        = "Goku",
                Name2        = "Vegeta",
                Position1    = "Earth Saiyan",
                Position2    = "Prince Saiyan",
                DocumentType = "CA"
            });
            Signatures.Add(new Signature()
            {
                Id           = 3,
                Name1        = "Ramen",
                Name2        = "Burger",
                Position1    = "Japanese Noodle",
                Position2    = "USA Sandwich",
                DocumentType = "CA"
            });
            Signatures.Add(new Signature()
            {
                Id           = 4,
                Name1        = "PUBG",
                Name2        = "Mobile Legend",
                Position1    = "Battle Royale",
                Position2    = "Moba",
                DocumentType = "CA"
            });
            #endregion

            #region credit approval dummy data
            CreditApprovals.Add(new CreditApproval()
            {
                Id               = 1,
                TicketNumber     = "44667788",
                MailNumber       = "1122334455",
                CustomerId       = 3,
                TempoStart       = Convert.ToDateTime("01/12/2019"),
                TempoEnd         = Convert.ToDateTime("05/05/2020"),
                LongTempo        = "Perbulan 1 kali",
                Volume           = "2 Liter",
                Units            = "Per Kg",
                PeriodeVolume    = "Perbulan Volume",
                SubmissionPeriod = "Kapan Saja",
                TransactionValue = "Rp 2.000.000",
                CreditLimit      = "Rp 2.500.000",
                Payment          = "Bank Indonesia",
                Guarantee        = "BPOM",
                Status           = EStatusCredit.DraftUser,
                FlagRead         = true,
                FlagFine         = true,
                CreatedBy        = 1,
                Currency         = "Rp",
                TransactionValueEstimatedPeriod = "Perbulan Pengeluaran",
                TrCaActionNote      = new List <TrCaActionNote>(),
                TrCaProducts        = new List <TrCaProduct>(),
                TrCaNotes           = new List <TrCaNote>(),
                CaCustomerDetails   = new List <CaCustomerDetail>(),
                QuantitativeAspects = new List <QuantitativeAspect>(),
                CreditScorings      = new List <CreditScoring>(),
                User = new User()
                {
                    Id       = 1,
                    Name     = "Admin",
                    Email    = "*****@*****.**",
                    Jabatan  = "Komisaris",
                    Password = PasswordHash.GetHash("12345678"),
                    Role     = EUserRole.Admin
                }
            });
            CreditApprovals.Add(new CreditApproval()
            {
                Id               = 2,
                TicketNumber     = "44667788",
                MailNumber       = "1122334455",
                CustomerId       = 2,
                TempoStart       = Convert.ToDateTime("01/12/2019"),
                TempoEnd         = Convert.ToDateTime("05/05/2020"),
                LongTempo        = "Perbulan 1 kali",
                Volume           = "2 Liter",
                Units            = "Per Kg",
                PeriodeVolume    = "Perbulan Volume",
                SubmissionPeriod = "Kapan Saja",
                TransactionValue = "Rp 2.000.000",
                CreditLimit      = "Rp 2.500.000",
                Payment          = "Bank Indonesia",
                Guarantee        = "BPOM",
                Status           = EStatusCredit.AR,
                FlagRead         = true,
                FlagFine         = true,
                CreatedBy        = 1,
                Currency         = "Rp",
                TransactionValueEstimatedPeriod = "Perbulan Pengeluaran",
                TrCaActionNote      = new List <TrCaActionNote>(),
                TrCaProducts        = new List <TrCaProduct>(),
                TrCaNotes           = new List <TrCaNote>(),
                CaCustomerDetails   = new List <CaCustomerDetail>(),
                QuantitativeAspects = new List <QuantitativeAspect>(),
                CreditScorings      = new List <CreditScoring>(),
                User = new User()
                {
                    Id       = 1,
                    Name     = "Admin",
                    Email    = "*****@*****.**",
                    Jabatan  = "Komisaris",
                    Password = PasswordHash.GetHash("12345678"),
                    Role     = EUserRole.Admin
                }
            });
            CreditApprovals.Add(new CreditApproval()
            {
                Id               = 3,
                TicketNumber     = "44667788",
                MailNumber       = "1122334455",
                CustomerId       = 1,
                TempoStart       = Convert.ToDateTime("01/12/2019"),
                TempoEnd         = Convert.ToDateTime("05/05/2020"),
                LongTempo        = "Perbulan 1 kali",
                Volume           = "2 Liter",
                Units            = "Per Kg",
                PeriodeVolume    = "Perbulan Volume",
                SubmissionPeriod = "Kapan Saja",
                TransactionValue = "Rp 2.000.000",
                CreditLimit      = "Rp 2.500.000",
                Payment          = "Bank Indonesia",
                Guarantee        = "BPOM",
                Status           = EStatusCredit.CashBank,
                FlagRead         = true,
                FlagFine         = true,
                CreatedBy        = 1,
                Currency         = "Rp",
                TransactionValueEstimatedPeriod = "Perbulan Pengeluaran",
                TrCaActionNote      = new List <TrCaActionNote>(),
                TrCaProducts        = new List <TrCaProduct>(),
                TrCaNotes           = new List <TrCaNote>(),
                CaCustomerDetails   = new List <CaCustomerDetail>(),
                QuantitativeAspects = new List <QuantitativeAspect>(),
                CreditScorings      = new List <CreditScoring>(),
                User = new User()
                {
                    Id       = 1,
                    Name     = "Admin",
                    Email    = "*****@*****.**",
                    Jabatan  = "Komisaris",
                    Password = PasswordHash.GetHash("12345678"),
                    Role     = EUserRole.Admin
                }
            });
            CreditApprovals.Add(new CreditApproval()
            {
                Id               = 4,
                TicketNumber     = "44667788",
                MailNumber       = "1122334455",
                CustomerId       = 4,
                TempoStart       = Convert.ToDateTime("01/12/2019"),
                TempoEnd         = Convert.ToDateTime("05/05/2020"),
                LongTempo        = "Perbulan 1 kali",
                Volume           = "2 Liter",
                Units            = "Per Kg",
                PeriodeVolume    = "Perbulan Volume",
                SubmissionPeriod = "Kapan Saja",
                TransactionValue = "Rp 2.000.000",
                CreditLimit      = "Rp 2.500.000",
                Payment          = "Bank Indonesia",
                Guarantee        = "BPOM",
                Status           = EStatusCredit.FBS,
                FlagRead         = true,
                FlagFine         = true,
                CreatedBy        = 1,
                Currency         = "Rp",
                TransactionValueEstimatedPeriod = "Perbulan Pengeluaran",
                TrCaActionNote      = new List <TrCaActionNote>(),
                TrCaProducts        = new List <TrCaProduct>(),
                TrCaNotes           = new List <TrCaNote>(),
                CaCustomerDetails   = new List <CaCustomerDetail>(),
                QuantitativeAspects = new List <QuantitativeAspect>(),
                CreditScorings      = new List <CreditScoring>(),
                User = new User()
                {
                    Id       = 1,
                    Name     = "Admin",
                    Email    = "*****@*****.**",
                    Jabatan  = "Komisaris",
                    Password = PasswordHash.GetHash("12345678"),
                    Role     = EUserRole.Admin
                }
            });
            CreditApprovals.Add(new CreditApproval()
            {
                Id               = 5,
                TicketNumber     = "44667788",
                MailNumber       = "1122334455",
                CustomerId       = 2,
                TempoStart       = Convert.ToDateTime("01/12/2019"),
                TempoEnd         = Convert.ToDateTime("05/05/2020"),
                LongTempo        = "Perbulan 1 kali",
                Volume           = "2 Liter",
                Units            = "Per Kg",
                PeriodeVolume    = "Perbulan Volume",
                SubmissionPeriod = "Kapan Saja",
                TransactionValue = "Rp 2.000.000",
                CreditLimit      = "Rp 2.500.000",
                Payment          = "Bank Indonesia",
                Guarantee        = "BPOM",
                Status           = EStatusCredit.ManagementRisk,
                FlagRead         = true,
                FlagFine         = true,
                CreatedBy        = 1,
                Currency         = "Rp",
                TransactionValueEstimatedPeriod = "Perbulan Pengeluaran",
                TrCaActionNote      = new List <TrCaActionNote>(),
                TrCaProducts        = new List <TrCaProduct>(),
                TrCaNotes           = new List <TrCaNote>(),
                CaCustomerDetails   = new List <CaCustomerDetail>(),
                QuantitativeAspects = new List <QuantitativeAspect>(),
                CreditScorings      = new List <CreditScoring>(),
                User = new User()
                {
                    Id       = 1,
                    Name     = "Admin",
                    Email    = "*****@*****.**",
                    Jabatan  = "Komisaris",
                    Password = PasswordHash.GetHash("12345678"),
                    Role     = EUserRole.Admin
                }
            });
            CreditApprovals.Add(new CreditApproval()
            {
                Id               = 6,
                TicketNumber     = "44667788",
                MailNumber       = "1122334455",
                CustomerId       = 1,
                TempoStart       = Convert.ToDateTime("01/12/2019"),
                TempoEnd         = Convert.ToDateTime("05/05/2020"),
                LongTempo        = "Perbulan 1 kali",
                Volume           = "2 Liter",
                Units            = "Per Kg",
                PeriodeVolume    = "Perbulan Volume",
                SubmissionPeriod = "Kapan Saja",
                TransactionValue = "Rp 2.000.000",
                CreditLimit      = "Rp 2.500.000",
                Payment          = "Bank Indonesia",
                Guarantee        = "BPOM",
                Status           = EStatusCredit.KomiteCredit,
                FlagRead         = true,
                FlagFine         = true,
                CreatedBy        = 1,
                Currency         = "Rp",
                TransactionValueEstimatedPeriod = "Perbulan Pengeluaran",
                TrCaActionNote      = new List <TrCaActionNote>(),
                TrCaProducts        = new List <TrCaProduct>(),
                TrCaNotes           = new List <TrCaNote>(),
                CaCustomerDetails   = new List <CaCustomerDetail>(),
                QuantitativeAspects = new List <QuantitativeAspect>(),
                CreditScorings      = new List <CreditScoring>(),
                User = new User()
                {
                    Id       = 1,
                    Name     = "Admin",
                    Email    = "*****@*****.**",
                    Jabatan  = "Komisaris",
                    Password = PasswordHash.GetHash("12345678"),
                    Role     = EUserRole.Admin
                }
            });
            #endregion

            #region tr ca note dummy data
            TrCaNotes.Add(new TrCaNote()
            {
                Id = 1,
                CreditApprovalId = 1,
                TanggalNota      = Convert.ToDateTime("12/12/2019"),
                Perihal          = "Pesan Dari FBS",
                Isi       = "Data ini valid",
                CreatedBy = "Admin",
                CreatedAt = DateTime.Now,
                UpdatedAt = DateTime.Now
            });
            TrCaNotes.Add(new TrCaNote()
            {
                Id = 2,
                CreditApprovalId = 2,
                TanggalNota      = Convert.ToDateTime("12/12/2019"),
                Perihal          = "Pesan Dari FBS",
                Isi       = "Data ini valid",
                CreatedBy = "Admin",
                CreatedAt = DateTime.Now,
                UpdatedAt = DateTime.Now
            });
            TrCaNotes.Add(new TrCaNote()
            {
                Id = 3,
                CreditApprovalId = 3,
                TanggalNota      = Convert.ToDateTime("12/12/2019"),
                Perihal          = "Pesan Dari FBS",
                Isi       = "Data ini valid",
                CreatedBy = "Admin",
                CreatedAt = DateTime.Now,
                UpdatedAt = DateTime.Now
            });
            #endregion
        }
        private void CreatePlaySignatures()
        {
            Signatures.Add((int)SignatureNames.PlayContainer, new SigEx
            {
                //avaliable only when playing;
                //need to reset on each play
                Name           = "PlayContainer",
                Pattern        = PatternHelpers.UnpackStr("894608EB2A8B35"),
                Offset         = 7,
                PointerOffsets = { 0x4, 0xC4, 0x4 },
                UseMask        = false
            });

            Signatures.Add((int)SignatureNames.PlayingMods, new SigEx
            {
                //Complex - 2 xored ints
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 28 }
            });
            Signatures.Add((int)SignatureNames.PlayerName, new SigEx
            {
                //char[]
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 40 }
            });
            Signatures.Add((int)SignatureNames.HitErrors, new SigEx
            {
                //int[]
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 56 }
            });
            Signatures.Add((int)SignatureNames.Combo, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 148 }
            });
            Signatures.Add((int)SignatureNames.ComboMax, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 104 }
            });
            Signatures.Add((int)SignatureNames.Hit100c, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 136 }
            });
            Signatures.Add((int)SignatureNames.Hit300c, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 138 }
            });
            Signatures.Add((int)SignatureNames.Hit50c, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 140 }
            });
            Signatures.Add((int)SignatureNames.HitGeki, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 142 }
            });
            Signatures.Add((int)SignatureNames.HitKatsu, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 144 }
            });
            Signatures.Add((int)SignatureNames.HitMissc, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 146 }
            });
            Signatures.Add((int)SignatureNames.Score, new SigEx
            {
                //int
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 120 }
            });
            Signatures.Add((int)SignatureNames.PlayingGameMode, new SigEx
            {
                //int
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 56, 104 }
            });
            Signatures.Add((int)SignatureNames.Acc, new SigEx
            {
                //double
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 72, 20 }
            });
            Signatures.Add((int)SignatureNames.PlayerHp, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 64, 28 }
            });
            Signatures.Add((int)SignatureNames.PlayerHpSmoothed, new SigEx
            {
                //ushort
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 64, 20 }
            });

            Signatures.Add((int)SignatureNames.ScoreV2, new SigEx
            {
                //int
                ParentSig      = Signatures[(int)SignatureNames.PlayContainer],
                PointerOffsets = { 0x4C, 0xC, 0x68, 0x4, 0xF8 }
            });
        }