void dsc_ReceiveResultFund(String bsData)
        {
            try
            {
                dataGridView2.Rows.Clear();
                _elwRemains.Clear();

                StringPacket sp = new StringPacket(bsData, ";");
                for (int i = 0; i < 31; ++i)
                {
                    sp.Decode();
                }

                while (!sp.Empty())
                {
                    FillElwRemains(sp.Decode());
                }

                DataGridViewCellStyle styleN0 = new DataGridViewCellStyle();
                styleN0.Format = "N0";
                this.dataGridView2.Columns[1].DefaultCellStyle = styleN0;

                foreach (CodeCount cc in _elwRemains.Values)
                {
                    int index = dataGridView2.Rows.Add();

                    dataGridView2.Rows[index].Cells[0].Value = cc.Code;
                    dataGridView2.Rows[index].Cells[1].Value = cc.Count;
                }

            }
            catch (System.Exception ex)
            {
                logger.Warn(ex.ToString());
            }
        }
Esempio n. 2
0
        List<String> ParseWatchListString(String input)
        {
            List<String> ret = new List<string>();

            StringPacket sp = new StringPacket(input, ";");

            while (!sp.Empty())
            {
                ret.Add(sp.Decode());
            }

            return ret;
        }
        void dsc_ReceiveResultFund(String bsData)
        {
            try
            {
                _elwRemains.Clear();

                StringPacket sp = new StringPacket(bsData, ";");
                for (int i = 0; i < 31; ++i)
                {
                    sp.Decode();
                }

                while (!sp.Empty())
                {
                    FillElwRemains(sp.Decode());
                }

                MakePOrder();

                _bDone = true;
            }
            catch (System.Exception ex)
            {
                logger.Error(ex.ToString());
                Util.KillWithNotice(ex.ToString());
            }
        }