Ejemplo n.º 1
0
        static void printNumbers()
        {
            csDBOperator obj2 = new csDBOperator();

            for (int i = 0; i < DDValueTrim.Count; i++)
            {
                Form1 obj = new Form1("v");
                TempVal.Add(DDValueTrim[i]);
                TempIDVal.Add(IDValueTrim[i]);
                obj.chart1.Series[0].Points.DataBindY(TempVal);
                obj2.mdDataFEED5(IDValueTrim[i]);
                obj.setVAl();
                int d = TempVal.Count - 1;
                int x = TempVal[d];
                csSectorEventsDB on = new csSectorEventsDB();

                on.DataSEt();
                sector.Add(on.FixList(i));
                string ms = on.boomORbust(on.FixList(i));


                obj.chart2.Series[0].Points.DataBindY(sector);

                new csAnalysiscs(x);
                Thread.Sleep(1000);
                Analysis = csAnalysiscs.AnalysisData();
                if (i < 4)
                {
                    MessageBox.Show("Analysis says :" + Analysis + ",Stcok chart says" + ms);
                    i++;
                }
                Thread.Sleep(5000);
            }
        }
Ejemplo n.º 2
0
        private static void printNumbers1()
        {
            csDBOperator obj2 = new csDBOperator();

            for (int i = 0; i < DDValueTrim.Count; i++)
            {
                if (IDValueTrim[i] == iddd)
                {
                    Form1 obj = new Form1("v");
                    TempVal.Add(DDValueTrim[i]);
                    TempIDVal.Add(IDValueTrim[i]);
                    obj.chart1.Series[0].Points.DataBindY(TempVal);

                    obj2.mdDataFEED5(IDValueTrim[i]);
                    Thread.Sleep(5000);
                    for (int j = i + 1; j < DDValueTrim.Count; j++)
                    {
                        Form1 obj1 = new Form1("v");
                        TempVal.Add(DDValueTrim[j]);
                        TempIDVal.Add(IDValueTrim[j]);
                        obj1.chart1.Series[0].Points.DataBindY(TempVal);

                        obj2.mdDataFEED5(IDValueTrim[j]);
                        csDBOperator obj001 = new csDBOperator();
                        obj001.mcbgetCurrentID(out iddd);
                        obj.label11.Text = iddd.ToString();
                        int d = TempVal.Count - 1;
                        int x = TempVal[d];
                        csSectorEventsDB on = new csSectorEventsDB();

                        on.DataSEt();
                        sector.Add(on.FixList(i));
                        string ms = on.boomORbust(on.FixList(i));


                        obj.chart2.Series[0].Points.DataBindY(sector);


                        new csAnalysiscs(x);
                        Thread.Sleep(1000);
                        Analysis = csAnalysiscs.AnalysisData();
                        if (i < 4)
                        {
                            MessageBox.Show("Analysis says :" + Analysis + ",Stcok chart says" + ms);
                            i++;
                        }
                        Thread.Sleep(5000);
                    }
                }
            }
        }