public MainPage() { InitializeComponent(); NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled; CCC.NavigateToString(Others.Utils.WrapHtml(resourceLoader.GetString("Conditions"), 500, null)); }
public CustomerACCOUNT() { InitializeComponent(); proccesTYPE.ProccesList(cmbProccesType); CCC.musteriListe(datagridview1); datagridview1.Columns["CustomerName"].HeaderText = "İsim"; datagridview1.Columns["CustomerSurname"].HeaderText = "Soyisim"; datagridview1.Columns["CustomerAccount"].HeaderText = "Bakiyes"; datagridview1.Columns["CustomerTelephone"].HeaderText = "Telefon"; datagridview1.Columns["CustomerDetails"].HeaderText = "Detaylar"; datagridview1.Columns["CustomerAddress"].HeaderText = "Adres"; datagridview1.Columns["CustomerOccupotion"].HeaderText = "Meslek"; datagridview1.Columns["CustomerRegistrationDate"].HeaderText = "KayıtTarihi"; datagridview1.Columns["RefCustomerName"].HeaderText = "Referansının Adi"; datagridview1.Columns["RefCustomerSurname"].HeaderText = "Referansının Soyadi"; datagridview1.Columns["CustomerID"].Visible = false; datagridview1.Columns["CustomerReference"].Visible = false; datagridview1.Columns["RefCustomerID"].Visible = false; }
private void UpdateAll() { LI = NI; NI = GetNI(); tbPCMenu.Text = PC.DEC16.ToString("X4"); tbLIMenu.Text = LI; tbNIMenu.Text = NI; tbLI.Text = LI; tbNI.Text = NI; tbPC.Text = PC.DEC16.ToString("X4"); tbSP.Text = SP.DEC16.ToString("X4"); tbCCC.Text = CCC.ToString(); tbIC.Text = IC.ToString(); tbA.Text = PSW.HB.DEC8.ToString("X2"); tbF.Text = PSW.LB.DEC8.ToString("X2"); tbB.Text = BC.HB.DEC8.ToString("X2"); tbC.Text = BC.LB.DEC8.ToString("X2"); tbD.Text = DE.HB.DEC8.ToString("X2"); tbE.Text = DE.LB.DEC8.ToString("X2"); tbH.Text = HL.HB.DEC8.ToString("X2"); tbL.Text = HL.LB.DEC8.ToString("X2"); tbM.Text = M.DEC8.ToString("X2"); string s; for (int i = 0; i <= 7; i++) { if (PSW.LB[i] == true) { s = "1"; } else { s = "0"; } FArray[i].Text = s; } }
private BaseCharacter GenerateAICharacter() { BaseCharacter temp = EnemyChar.Clone(); temp.statChart = enemyStats.Clone(); temp.displayName = enemyName; temp.weapon = EnemyWeapon; temp.enemyWeaponArray = enemyWeaponArray; temp.armour = EnemyArmor; temp.enemyArmourArray = enemyArmourArray; temp.CCC = CCC.Clone(); temp.CCC.parent = temp; if (HasProperLua() && GameProcessor.bIsInGame) { ExecuteLuaCreation(ref temp); } temp.statChart.MakeSureActiveAndPassiveStatsEqual(); temp.bIsAI = true; temp.eai = this; return(temp); }
static CCC () { Empty = new CCC (); }
public void TestReadCsvLeve3() { FileInfo fi = new FileInfo(@"d:\wukan\Desktop\DepthDataShow\20150120.txt"); //FileInfo fo = new FileInfo(@"F:\BaiduYunDownload\DepthDataShow\20150120.pd0"); PbTickSerializer pts = new PbTickSerializer(); CCC ccc = new CCC(); CCC last_ccc = new CCC(); AAA last = new AAA(); last.buy = false; string last_symbol = "XXX"; List <AAA> list = new List <AAA>(); //using (Stream stream = File.Open(@"F:\BaiduYunDownload\DepthDataShow\20150120.pd0", FileMode.Create)) { using (StreamReader file = new StreamReader(fi.OpenRead())) { int i = 0; string str; do { ++i; str = file.ReadLine(); if (str == null) { break; } string[] arr = str.Split(','); AAA a = new AAA(); a.symbol = arr[1]; a.buy = arr[2] == "0"; a.price = double.Parse(arr[3]); a.size = int.Parse(arr[4]); if (last.buy == false && a.buy == true) { // 快照的切换点,把上次的存储都取出来,进行保存 // sell里先存的数字大的,后存的数字小的,最后的是卖一 // buy里也是先存数字大的,后存数字小的,最前的买一 // foreach (var kv in ccc.dict) { kv.Value.MakeTick(); ccc.GetSerializer(kv.Key).Write(kv.Value.tick, new Stream[] { ccc.GetStream(kv.Key) }); } ccc.dict.Clear(); } BBB bbb = ccc.Get(a.symbol); bbb.symbol = a.symbol; bbb.time = arr[0]; if (bbb.symbol == "cu1502") { int nTest = 1; } if (a.buy) { bbb.AddBid(a); } else { bbb.AddAsk(a); } last = a; last_symbol = a.symbol; //if (i < 4000) // Console.WriteLine(str); //if (i > 4000) // break; } while (str != null); file.Close(); } } }
//[TestMethod] public void TestReadCsvLeve3() { FileInfo fi = new FileInfo(@"d:\wukan\Desktop\DepthDataShow\20150120.txt"); //FileInfo fo = new FileInfo(@"F:\BaiduYunDownload\DepthDataShow\20150120.pd0"); PbTickSerializer pts = new PbTickSerializer(); CCC ccc = new CCC(); CCC last_ccc = new CCC(); AAA last = new AAA(); last.buy = false; string last_symbol = "XXX"; List<AAA> list = new List<AAA>(); //using (Stream stream = File.Open(@"F:\BaiduYunDownload\DepthDataShow\20150120.pd0", FileMode.Create)) { using (StreamReader file = new StreamReader(fi.OpenRead())) { int i = 0; string str; do { ++i; str = file.ReadLine(); if (str == null) break; string[] arr = str.Split(','); AAA a = new AAA(); a.symbol = arr[1]; a.buy = arr[2] == "0"; a.price = double.Parse(arr[3]); a.size = int.Parse(arr[4]); if (last.buy == false && a.buy == true) { // 快照的切换点,把上次的存储都取出来,进行保存 // sell里先存的数字大的,后存的数字小的,最后的是卖一 // buy里也是先存数字大的,后存数字小的,最前的买一 // foreach (var kv in ccc.dict) { kv.Value.MakeTick(); ccc.GetSerializer(kv.Key).Write(kv.Value.tick, new Stream[] { ccc.GetStream(kv.Key) }); } ccc.dict.Clear(); } BBB bbb = ccc.Get(a.symbol); bbb.symbol = a.symbol; bbb.time = arr[0]; if (bbb.symbol == "cu1502") { int nTest = 1; } if (a.buy) { bbb.AddBid(a); } else { bbb.AddAsk(a); } last = a; last_symbol = a.symbol; //if (i < 4000) // Console.WriteLine(str); //if (i > 4000) // break; } while (str != null); file.Close(); } } }
static CCC() { Empty = new CCC(); }
public void Simple() { Assert.Equal(158, CCC.CountCombinations(100, new int[] { 1, 5, 10, 50 })); }
public void NoChance() { Assert.Equal(0, CCC.CountCombinations(11, new int[] { 5, 7 })); }
public void AnotherSimpleCase() { Assert.Equal(4, CCC.CountCombinations(10, new int[] { 5, 2, 3 })); }
public void SampleTest() { Assert.Equal(3, CCC.CountCombinations(4, new int[] { 1, 2 })); }
public CustomerADD() { InitializeComponent(); CCC.cmboboxReferansDoldur(cmbCustomerRefrence); }