private void Form_Main_Load(object sender, EventArgs e) { CheckForUsers(); if (Users.Count == 0) { Usercontrol_Sidepanel_Createuser.firstTime = true; Panel_Placeholder_Sidepanel.Controls.Add(Usercontrol_Sidepanel_Createuser.uscu); Panel_Placeholder_Background.Controls.Add(Usercontrol_Background_Description.ubd); Usercontrol_Background_Description.ubd.ChangeType(Usercontrol_Background_Description.Type.Create); Usercontrol_Background_Description.ubd.BringToFront(); } else { Usercontrol_Sidepanel_Createuser.firstTime = false; Panel_Placeholder_Sidepanel.Controls.Add(Usercontol_Sidepanel_Chooseuser.uschu); Panel_Placeholder_Background.Controls.Add(Usercontrol_Background_Description.ubd); Usercontrol_Background_Description.ubd.ChangeType(Usercontrol_Background_Description.Type.Choose); Usercontrol_Background_Description.ubd.BringToFront(); Picture_AddUser.Visible = true; } Opacity = 0; Timer_FormFadeIn.Start(); }
private void Timer_FormFadeIn_Tick(object sender, EventArgs e) { Opacity += 0.1; if (Opacity == 1) { Timer_FormFadeIn.Stop(); } }