namespace EdgeVoyager { public partial class main : Form { public main() { InitializeComponent(); } private void main_Shown(object sender, EventArgs e) { Form1 form1 = new Form1(); this.Hide(); form1.Show(); } private void timer1_Tick(object sender, EventArgs e) { if(Settings1.Default.windows_num==0) Environment.Exit(0); } } }