Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
        private void userInformationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PersonalInformation oPersonalInformation = new PersonalInformation(Ap.CurrentUserID);

            oPersonalInformation.UserName      = Ap.CurrentUser.UserName;
            oPersonalInformation.ShowInTaskbar = false;
            oPersonalInformation.Show();
        }
Exemplo n.º 3
0
        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();
        }