private void pictureBox_style_LoadCompleted(object sender, AsyncCompletedEventArgs e) { if (pictureBox_style.ImageLocation == "Content/settings/style_1.xn") { groupBox1.Visible = true; } if (pictureBox_style.ImageLocation != "Content/settings/style_1.xn") { groupBox1.Visible = false; SettingForm f = new SettingForm(); f.Height = 250; timer_up.Start(); timer_up_Tick(sender, e); } if (pictureBox_style.ImageLocation == "Content/settings/style_2.xn") { SettingForm f = new SettingForm(); f.Size = new System.Drawing.Size(562, 310); } if (pictureBox_style.ImageLocation == "Content/settings/style_3.xn") { trackBar1.Visible = true; label2.Visible = true; } if (pictureBox_style.ImageLocation != "Content/settings/style_3.xn") { trackBar1.Visible = false; label2.Visible = false; } }
private void timer_up_Tick(object sender, EventArgs e) { SettingForm f = new SettingForm(); if (f.Height > 250) { f.Height -= 10; } else { timer_up.Stop(); } }