Пример #1
0
        private void btnChangePw_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            ChangePasswoerd frmChangePasswoerd = new ChangePasswoerd();

            frmChangePasswoerd.TopLevel        = false;
            frmChangePasswoerd.FormBorderStyle = FormBorderStyle.None;

            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmChangePasswoerd);
            frmChangePasswoerd.Show();
        }
Пример #2
0
        private void UserWindow_Shown(object sender, EventArgs e)
        {
            if (UserTools._UserName == "Admin")
            {
                btnCreateUser.Visible    = true;
                btnEditPermition.Visible = true;
            }
            else
            {
                btnCreateUser.Visible    = false;
                btnEditPermition.Visible = false;
            }
            ChangePasswoerd frmChangePasswoerd = new ChangePasswoerd();

            frmChangePasswoerd.TopLevel        = false;
            frmChangePasswoerd.FormBorderStyle = FormBorderStyle.None;

            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmChangePasswoerd);
            frmChangePasswoerd.Show();
        }