private void toolStripButtonPicture_Click(object sender, EventArgs e) { if (dataGridView1.RowCount <= 0 || dataGridView1.SelectedRows == null || dataGridView1.SelectedRows.Count == 0) { return; } if (dataGridView1.SelectedRows.Count > 0) { if (!Ap.CurrentUser.IsGuest) { int i = dataGridView1.CurrentRow.Index; if (dataGridView1["Rank", i].Value.ToString() != "Guest") { PersonalInformation frm = new PersonalInformation(); frm.UserID = SelectedUserId; frm.UserName = SelectedUserName; frm.ShowDialog(); } else { MessageForm.Show(this.ParentForm, MsgE.ErrorViewGuestPicture); } } else { MessageForm.Show(this.ParentForm, MsgE.ErrorViewUserPicture); } } }
private void userInformationToolStripMenuItem_Click(object sender, EventArgs e) { PersonalInformation oPersonalInformation = new PersonalInformation(Ap.CurrentUserID); oPersonalInformation.UserName = Ap.CurrentUser.UserName; oPersonalInformation.ShowInTaskbar = false; oPersonalInformation.Show(); }
private void btnPicture_Click(object sender, EventArgs e) { //this.ParentForm.DialogResult = DialogResult.OK; //this.ParentForm.Close(); PersonalInformation frm = new PersonalInformation(); frm.UserID = this.userID; frm.UserName = this.txtUserName.Text; frm.ShowDialog(); }