private void Client_OnLogin(bool status, List <string> chatlog) { this.Invoke((Action) delegate { if (status) { HomeForm homePageForm = new HomeForm(_client, chatlog, this); homePageForm.Show(); this.Hide(); } else { MessageBox.Show("Invalid Password or Username", "Error"); } }); }
public void setForms(HomeForm homeForm, LoginForm loginForm) { this.hf = homeForm; this.lf = loginForm; }