Esempio n. 1
0
        private void scBrowser_SecurityManagerClicked(object sender, SecurityManagerClickedEventArgs args)
        {
            try
            {
                pnlContent.Controls.Clear();

                SecurityManagerUserControl userControl = new SecurityManagerUserControl();
                userControl.SecurityManager = args.SecurityManager;
                userControl.Location        = new Point(0, 0);
                userControl.Name            = "userControl";
                pnlContent.Controls.Add(userControl);
                userControl.Show();

                SecurityManagerPermissionControl permControl = new SecurityManagerPermissionControl();
                permControl.SecurityManager = args.SecurityManager;
                permControl.Location        = new Point(0, userControl.Size.Height + 10);
                permControl.Name            = "permControl";
                pnlContent.Controls.Add(permControl);
                permControl.Show();

                SecurityManagerIPControl ipControl = new SecurityManagerIPControl();
                ipControl.SecurityManager = args.SecurityManager;
                ipControl.Location        = new Point(0, userControl.Size.Height + permControl.Size.Height + 20);
                ipControl.Name            = "ipControl";
                pnlContent.Controls.Add(ipControl);
                ipControl.Show();
            }
            catch (Exception e)
            {
                SC.GUI.Utility.ErrorForm.ShowErrorForm(e);
            }
        }
Esempio n. 2
0
        private void scBrowser_SecurityManagerClicked(object sender, SecurityManagerClickedEventArgs args)
        {
            try
            {
                pnlContent.Controls.Clear();

                SecurityManagerUserControl userControl = new SecurityManagerUserControl();
                userControl.SecurityManager = args.SecurityManager;
                userControl.Location = new Point(0, 0);
                userControl.Name = "userControl";
                pnlContent.Controls.Add(userControl);
                userControl.Show();

                SecurityManagerPermissionControl permControl = new SecurityManagerPermissionControl();
                permControl.SecurityManager = args.SecurityManager;
                permControl.Location = new Point(0, userControl.Size.Height + 10);
                permControl.Name = "permControl";
                pnlContent.Controls.Add(permControl);
                permControl.Show();

                SecurityManagerIPControl ipControl = new SecurityManagerIPControl();
                ipControl.SecurityManager = args.SecurityManager;
                ipControl.Location = new Point(0, userControl.Size.Height + permControl.Size.Height + 20);
                ipControl.Name = "ipControl";
                pnlContent.Controls.Add(ipControl);
                ipControl.Show();
            }
            catch (Exception e)
            {
                SC.GUI.Utility.ErrorForm.ShowErrorForm(e);
            }
        }