private void timer1_Tick(object sender, EventArgs e)
        {
            switch (this.action)
            {
            case enmAction.wait:
                timer1.Interval = 50000;
                action          = enmAction.close;
                break;

            case Form_Alert.enmAction.start:
                this.timer1.Interval = 1;
                this.Opacity        += 0.1;
                if (this.x < this.Location.X)
                {
                    this.Left--;
                }
                else
                {
                    if (this.Opacity == 1.0)
                    {
                        action = Form_Alert.enmAction.wait;
                    }
                }
                break;

            case enmAction.close:
                timer1.Interval = 1;
                this.Opacity   -= 0.1;

                this.Left -= 3;
                if (base.Opacity == 0.0)
                {
                    base.Close();
                }
                break;

            case enmAction.Frm:
                timer1.Interval = 1;

                New_Item Frm = new New_Item();
                Frm.Show();
                break;
            }
        }
Exemple #2
0
        private void Add_Item_Click(object sender, EventArgs e)
        {
            Form New_Item = new New_Item();

            New_Item.Show();
        }