//Тајмер кој ни овозможува после 5 секунди замена од форма2 на Мејн син. private void Timer3_Tick(object sender, EventArgs e) { count++; if (count == 5) { MainScene mn = new MainScene(); this.Hide(); mn.ShowDialog(); timer3.Stop(); this.Close(); } }
//Loading scene and changing from form2 to the MainScene // private void LoadingForm_Load(object sender, EventArgs e) { MainScene mainScene = new MainScene(); timer1.Tick += new EventHandler(move); timer1.Interval = 10; timer1.Start(); //Duhet Diskutim if (timer1.Interval >= 100) { MainScene mn = new MainScene(); if (mn.ShowDialog() == DialogResult.OK) { mn.AddOwnedForm(mainscene); timer1.Stop(); } this.Close(); } }