Exemplo n.º 1
0
        private void ButtonHistory_Click(object sender, EventArgs e)
        {
            SidePanel.Height = buttonHistory.Height;
            SidePanel.Top    = buttonHistory.Top;

            this.Hide();
            var form2 = new LackHistoryForm();

            form2.Closed += (s, args) => this.Close();
            form2.Show();
        }
        private void ButtonHistoria_Click(object sender, EventArgs e)
        {
            CheckCurrentUserPermission();

            if (userAdminAccessPersmission == true)
            {
                this.Hide();
                var form2 = new LackHistoryForm();
                form2.Closed += (s, args) => this.Close();
                form2.Show();
            }
            else
            {
                MessageBox.Show("You dont have admin permission");
            }
        }