private void usersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //open users form
            frmUsers users = new frmUsers();

            users.Show();
        }
Beispiel #2
0
        //getting user detailes
        private void dgvUsers_DoubleClick(object sender, EventArgs e)
        {
            var userId = (int)dgvUsers.SelectedRows[0].Cells[0].Value;
            var frm    = new frmUsers(userId);

            frm.Show();
        }
Beispiel #3
0
        //opening new form for user detailes
        private void metroButton1_Click(object sender, EventArgs e)
        {
            metroButton1.Enabled = false;
            var frm = new frmUsers();

            frm.Show();
            metroButton1.Enabled = true;
        }
Beispiel #4
0
        private void searchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUsers frm = new frmUsers();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
        }
Beispiel #5
0
        private void btn_Users_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmUsers f = new frmUsers();

            if (ExistForm(f))
            {
                return;
            }
            f.MdiParent = this;
            f.Show();
        }
Beispiel #6
0
        private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmUsers frm = new frmUsers();

            //foreach (var item in MdiChildren)
            //{
            //    item.Close();
            //}
            frm.MdiParent = this;
            frm.Show();
        }
        private void usersTab_Click(object sender, EventArgs e)
        {
            mainpanel.Controls.Clear();
            frmUsers myForm = new frmUsers();

            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.TopLevel        = false;
            myForm.AutoScroll      = true;
            mainpanel.Controls.Add(myForm);
            myForm.Show();
        }
 private void usersToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         frmUsers fnew1 = new frmUsers();
         fnew1.Show();
     }catch (Exception ex)
     {
         MessageBox.Show("Error");
     }
 }
Beispiel #9
0
 private void userToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CheckAndLoadSettings())
     {
         frmUsers fu = new frmUsers();
         fu.MdiParent = this;
         fu.UserRole  = tssUserRole.Text;
         fu.DBPath    = DatabasePath;
         fu.inif      = iniF;
         fu.Show();
     }
 }
Beispiel #10
0
        private void Panel1_Enter(object sender, EventArgs e)
        {
            frmUsers frmUsers = new frmUsers();

            frmUsers.TopLevel   = false;
            frmUsers.AutoScroll = false;
            frmUsers.Height     = UsersPanel.Height;
            frmUsers.Width      = UsersPanel.Width;
            UsersPanel.Controls.Clear();
            UsersPanel.Controls.Add(frmUsers);
            frmUsers.Show();
            UsersPanel.Controls.SetChildIndex(frmUsers, 1);
        }
Beispiel #11
0
        private void usersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUsers user = new frmUsers();

            user.Show();
        }
Beispiel #12
0
        private void bunifuFlatButton1_Click(object sender, EventArgs e)
        {
            frmUsers user = new frmUsers();

            user.Show();
        }
 private void User_Click(object sender, RoutedEventArgs e)
 {
     frmUsers users = new frmUsers();
     users.Show();
 }
        private void UtilizatoriToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUsers fu = new frmUsers();

            fu.Show();
        }