private void btnLogout_Click(object sender, EventArgs e) { if (myLoginFrm.ShowDialog(this) == DialogResult.Yes) { playerDbConn = myLoginFrm.DbConnector; } }
public PocketWorld() { InitializeComponent(); myLoginFrm = new LoginForm(); if( myLoginFrm.ShowDialog(this) == DialogResult.Yes) { playerDbConn = myLoginFrm.DbConnector; } InitScreen(); }
public PocketWorld() { InitializeComponent(); myLoginFrm = new LoginForm(); if (myLoginFrm.ShowDialog(this) == DialogResult.Yes) { playerDbConn = myLoginFrm.DbConnector; } InitScreen(); }
public LoginForm() { InitializeComponent(); dbConnector = new PlayerDBConnectManager(); }