public LoginForm() { InitializeComponent(); loginSubform.Show(); loginSubform.ChangeToRegisterUi += OnChangeToRegisterUi; registrationSubform.Hide(); registrationSubform.ChangeToLoginUi += OnChangeToLoginUi; this.AcceptButton = loginSubform.btnLogin; loginSubform.Login += (o, e) => Login?.Invoke(this, e); registrationSubform.Signup += (o, e) => Signup?.Invoke(this, e); // TODO: uniform font }