Пример #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (NextTvs < 163)
            {
                if (z == 2)
                {
                    MyCartogram.GoalTVSByIndex(NextTvs);
                    //MyCartogram.SetTVSSolidColor(Brushes.Black,NextTvs, checkBox1.Checked);
                }
                else
                {
                    MyCartogram.SetTVSSolidColor(Color.White, NextTvs, true);
                }


                MyCartogram.updateLoadNumberByTVSNumber(NextTvs);

                //  z = 3;
                z = 7 - z;
            }



            ///Нужно отмечать месторасположение пробоотборников линейным градиентом, который плавно меняется
            ///
            //LinearGradientBrush lgb = new LinearGradientBrush(this._fuelRect, Color.Blue, Color.LightBlue, (float)0);



            //if (this.currentColor ==255)
            //{
            //    k = -5;
            //}
            //if (this.currentColor ==130)
            //{
            //    k = 5;
            //}

            //MyCartogram.SetTVSSolidColorBy360Number(new SolidBrush(Color.FromArgb(255, this.currentColor, this.currentColor)), 5, true);
            //MyCartogram.SetTVSSolidColorBy360Number(new SolidBrush(Color.FromArgb(255, this.currentColor, this.currentColor)), 157, true);

            //this.currentColor = this.currentColor + k;
        }
Пример #2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (NextTvs < 163)
            {
                if (z == 2)
                {
                    MyCartogram.GoalTVSByIndex(NextTvs);
                    //MyCartogram.SetTVSSolidColor(Brushes.Black,NextTvs, checkBox1.Checked);
                }
                else
                {
                    MyCartogram.SetTVSSolidColor(Brushes.White, NextTvs, true);
                }


                MyCartogram.updateLoadNumberByTVSNumber(NextTvs);

                //  z = 3;
                z = 7 - z;
            }
        }