private void openProfile() { // show profile information frmProfile FrmProfile = new frmProfile(getCurrentlySelectedUser()); FrmProfile.MdiParent = this.MdiParent; FrmProfile.StartPosition = FormStartPosition.CenterParent; FrmProfile.Show(); }
/* * Shows user's profile form */ private void openProfile() { if (!focusForm("frmProfile")) { frmProfile FrmProfile = new frmProfile(this.current_user); FrmProfile.MdiParent = this; FrmProfile.StartPosition = FormStartPosition.CenterParent; FrmProfile.Show(); } }