예제 #1
0
파일: frmIndex.cs 프로젝트: GagY23998/rs2
        private void NewUserToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUserDetails frmUserDetails = new frmUserDetails();

            frmUserDetails.MdiParent   = this;
            frmUserDetails.WindowState = FormWindowState.Maximized;
            frmUserDetails.Show();
        }
예제 #2
0
        private void userDetailsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new frmUserDetails();

            form.MdiParent   = this;
            form.WindowState = FormWindowState.Maximized;
            form.Show();
        }
예제 #3
0
 private void btnNewUser_CheckedChanged(object sender, EventArgs e)
 {
     if (btnNewUser.Checked)
     {
         btnNewUser.Checked = false;
         frmUserDetails frm = new frmUserDetails();
         frm.Show();
     }
 }
예제 #4
0
        private void editProfileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUserDetails frm = new frmUserDetails(_user, _user.UserId)
            {
                MdiParent   = this,
                WindowState = FormWindowState.Maximized
            };

            frm.Show();
        }
예제 #5
0
        private void btnMyProfile_Click(object sender, EventArgs e)
        {
            frmUserDetails frmUser = new frmUserDetails(APIService.loggedUser.Id);

            frmUser.TopLevel        = false;
            frmUser.FormBorderStyle = FormBorderStyle.None;
            pnlContent.Controls.Clear();
            pnlContent.Controls.Add(frmUser);
            frmUser.Show();
        }
예제 #6
0
파일: frmUsers.cs 프로젝트: GagY23998/rs2
        private void DgvUsers_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var            id          = dgvUsers.SelectedRows[0].Cells[0].Value;
            frmUserDetails userDetails = new frmUserDetails(int.Parse(id.ToString()));

            userDetails.WindowState     = FormWindowState.Maximized;
            userDetails.FormBorderStyle = FormBorderStyle.None;
            userDetails.TopLevel        = false;
            var parentOfThisOne = this.Parent.Controls;

            parentOfThisOne.Add(userDetails);
            parentOfThisOne.SetChildIndex(userDetails, 1);
            userDetails.Show();
            this.Hide();
        }
예제 #7
0
        private void dodajPosjetiocaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUserDetails frm = new frmUserDetails();

            frm.Show();
        }
예제 #8
0
        private void AddNewUserToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUserDetails frm = new frmUserDetails();

            frm.Show();
        }