private void NewUserToolStripMenuItem_Click(object sender, EventArgs e) { frmUserDetails frmUserDetails = new frmUserDetails(); frmUserDetails.MdiParent = this; frmUserDetails.WindowState = FormWindowState.Maximized; frmUserDetails.Show(); }
private void userDetailsToolStripMenuItem_Click(object sender, EventArgs e) { var form = new frmUserDetails(); form.MdiParent = this; form.WindowState = FormWindowState.Maximized; form.Show(); }
private void btnNewUser_CheckedChanged(object sender, EventArgs e) { if (btnNewUser.Checked) { btnNewUser.Checked = false; frmUserDetails frm = new frmUserDetails(); frm.Show(); } }
private void editProfileToolStripMenuItem_Click(object sender, EventArgs e) { frmUserDetails frm = new frmUserDetails(_user, _user.UserId) { MdiParent = this, WindowState = FormWindowState.Maximized }; frm.Show(); }
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(); }
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(); }
private void dodajPosjetiocaToolStripMenuItem_Click(object sender, EventArgs e) { frmUserDetails frm = new frmUserDetails(); frm.Show(); }
private void AddNewUserToolStripMenuItem_Click(object sender, EventArgs e) { frmUserDetails frm = new frmUserDetails(); frm.Show(); }