void showlogin() { logOn log = new logOn(); if (DialogResult.OK == log.ShowDialog(this)) { this.Show(); LogOnC loc = new LogOnC(); _user = loc.GetOneUser(log.username); } else { this.Close(); } }
void showlogin() { logOn log = new logOn(); if(DialogResult.OK ==log.ShowDialog(this)) { this.Show(); } else{ this.Close(); } }