示例#1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            Main_Form_Layer m = new Main_Form_Layer();

            label3.Location = new System.Drawing.Point(label3.Location.X + 5, label3.Location.Y);
            if (label3.Location.X > 580)
            {
                label3.Location = new System.Drawing.Point(470 - label3.Width, label3.Location.Y);
            }
            if (time == 0)
            {
                label3.ForeColor = System.Drawing.ColorTranslator.FromHtml("#D3EBB2");
                timer1.Interval  = 200;
                time             = 4;
            }
            //if(time == 2)
            //{
            //    label3.ForeColor = System.Drawing.ColorTranslator.FromHtml("#FF8B55");
            //    time = 4;
            //}
            else
            {
                label3.ForeColor = System.Drawing.ColorTranslator.FromHtml("#FADAA3");
                time             = 0;
            }
        }
示例#2
0
        private void bánHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Main_Form_Layer Main = new Main_Form_Layer();

            Main.ShowDialog();
        }