public object PerformSet(object?toTarget, object?newValue, object[]?arguments)
        {
            if (toTarget == null)
            {
                throw new ArgumentNullException(nameof(toTarget));
            }

            IEnumerable <Control>?newValueEnumerable = newValue as IEnumerable <Control>;

            if (newValueEnumerable == null)
            {
                throw new ArgumentException($"newValue must be {nameof(newValue)}", nameof(newValue));
            }

            Control.ControlCollection targetCollection = (Control.ControlCollection)toTarget;

            targetCollection.Owner.SuspendLayout();

            targetCollection.Clear();
            targetCollection.AddRange(newValueEnumerable.ToArray());

            targetCollection.Owner.ResumeLayout();

            return(targetCollection);
        }
예제 #2
0
        }// CDNSPermControls

        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CDNSPermControls));
            this.m_radUnrestricted                      = new System.Windows.Forms.RadioButton();
            this.m_radGrantFollowingPermission          = new System.Windows.Forms.RadioButton();
            this.m_lblNoDNSDescription                  = new System.Windows.Forms.Label();
            this.m_radUnrestricted.Location             = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Size                 = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex             = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            this.m_radUnrestricted.Text                 = resources.GetString("m_radUnrestricted.Text");
            m_radUnrestricted.Name                      = "Unrestricted";
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radNoAccess.Location")));
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radNoAccess.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radNoAccess.TabIndex")));
            this.m_radGrantFollowingPermission.Text     = resources.GetString("m_radNoAccess.Text");
            m_radGrantFollowingPermission.Name          = "Restricted";
            this.m_lblNoDNSDescription.Location         = ((System.Drawing.Point)(resources.GetObject("m_lblNoDNSDescription.Location")));
            this.m_lblNoDNSDescription.Size             = ((System.Drawing.Size)(resources.GetObject("m_lblNoDNSDescription.Size")));
            this.m_lblNoDNSDescription.TabIndex         = ((int)(resources.GetObject("m_lblNoDNSDescription.TabIndex")));
            this.m_lblNoDNSDescription.Text             = resources.GetString("m_lblNoDNSDescription.Text");
            m_lblNoDNSDescription.Name                  = "NoDNSDescription";
            cc.AddRange(new System.Windows.Forms.Control[] {
                this.m_lblNoDNSDescription,
                this.m_radUnrestricted,
                this.m_radGrantFollowingPermission
            });

            // Fill in the data
            PutValuesinPage();

            m_radGrantFollowingPermission.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_radUnrestricted.CheckedChanged             += new EventHandler(onChangeUnRestrict);

            return(1);
        }// InsertPropSheetPageControls
        }// CComboBoxPermissionControls

        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CComboBoxPermissionControls));
            this.m_lblOptionDescription          = new System.Windows.Forms.Label();
            this.m_ucOptions                     = new System.Windows.Forms.UserControl();
            this.m_radUnrestricted               = new System.Windows.Forms.RadioButton();
            this.m_radGrantFollowingPermission   = new System.Windows.Forms.RadioButton();
            this.m_cbOptions                     = new System.Windows.Forms.ComboBox();
            this.m_lblOptionDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_lblOptionDescription.Location")));
            this.m_lblOptionDescription.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblOptionDescription.Size")));
            this.m_lblOptionDescription.TabIndex = ((int)(resources.GetObject("m_lblOptionDescription.TabIndex")));
            m_lblOptionDescription.Name          = "OptionDescription";
            this.m_ucOptions.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_lblOptionDescription,
                                                                                    this.m_cbOptions });
            this.m_ucOptions.Location                   = ((System.Drawing.Point)(resources.GetObject("m_ucOptions.Location")));
            this.m_ucOptions.Size                       = ((System.Drawing.Size)(resources.GetObject("m_ucOptions.Size")));
            this.m_ucOptions.TabIndex                   = ((int)(resources.GetObject("m_ucOptions.TabIndex")));
            m_ucOptions.Name                            = "Options";
            this.m_radUnrestricted.Location             = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Size                 = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex             = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            m_radUnrestricted.Name                      = "Unrestricted";
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radGrantPermissions.Location")));
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radGrantPermissions.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radGrantPermissions.TabIndex")));
            m_radGrantFollowingPermission.Name          = "Restricted";
            this.m_cbOptions.DropDownWidth              = 320;
            this.m_cbOptions.DropDownStyle              = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_cbOptions.Location                   = ((System.Drawing.Point)(resources.GetObject("m_cbOptions.Location")));
            this.m_cbOptions.Size                       = ((System.Drawing.Size)(resources.GetObject("m_cbOptions.Size")));
            this.m_cbOptions.TabIndex                   = ((int)(resources.GetObject("m_cbOptions.TabIndex")));
            m_cbOptions.Name                            = "ComboOptions";
            cc.AddRange(new System.Windows.Forms.Control[] {
                this.m_radGrantFollowingPermission,
                this.m_ucOptions,
                this.m_radUnrestricted
            });

            // Fill in the data
            PutValuesinPage();

            // Hook up event handlers
            m_radGrantFollowingPermission.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_cbOptions.SelectedIndexChanged             += new EventHandler(onChange);
            m_cbOptions.SelectedIndexChanged             += new EventHandler(onOptionChange);
            m_radUnrestricted.CheckedChanged             += new EventHandler(onChangeUnRestrict);


            return(1);
        }// InsertPropSheetPageControls
예제 #4
0
        /// <inheritdoc />
        public object PerformSet(object toTarget, object newValue, object[] arguments)
        {
            IEnumerable <Control> newValueEnumerable = (IEnumerable <Control>)newValue;

            Control.ControlCollection targetCollection = (Control.ControlCollection)toTarget;

            targetCollection.Owner.SuspendLayout();

            targetCollection.Clear();
            targetCollection.AddRange(newValueEnumerable.ToArray());

            targetCollection.Owner.ResumeLayout();

            return(targetCollection);
        }
예제 #5
0
        }// CSQLClientPermControls

        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CSQLClientPermControls));
            this.m_radUnrestricted             = new System.Windows.Forms.RadioButton();
            this.m_ucOptions                   = new System.Windows.Forms.UserControl();
            this.m_lblHelp                     = new System.Windows.Forms.Label();
            this.m_radGrantFollowingPermission = new System.Windows.Forms.RadioButton();
            this.m_chkAllowBlankPasswords      = new System.Windows.Forms.CheckBox();
            this.m_radUnrestricted.Location    = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Size        = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex    = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            this.m_radUnrestricted.Text        = resources.GetString("m_radUnrestricted.Text");
            m_radUnrestricted.Name             = "Unrestricted";
            this.m_ucOptions.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_chkAllowBlankPasswords });
            this.m_ucOptions.Location = ((System.Drawing.Point)(resources.GetObject("m_ucOptions.Location")));
            this.m_ucOptions.Size     = ((System.Drawing.Size)(resources.GetObject("m_ucOptions.Size")));
            this.m_ucOptions.TabIndex = ((int)(resources.GetObject("m_ucOptions.TabIndex")));
            m_ucOptions.Name          = "Options";
            this.m_lblHelp.Location   = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location")));
            this.m_lblHelp.Size       = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size")));
            this.m_lblHelp.TabIndex   = ((int)(resources.GetObject("m_lblHelp.TabIndex")));
            this.m_lblHelp.Text       = resources.GetString("m_lblHelp.Text");
            m_lblHelp.Name            = "Help";
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radGrantPermissions.Location")));
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radGrantPermissions.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radGrantPermissions.TabIndex")));
            this.m_radGrantFollowingPermission.Text     = resources.GetString("m_radGrantPermissions.Text");
            m_radGrantFollowingPermission.Name          = "Restricted";
            this.m_chkAllowBlankPasswords.Location      = ((System.Drawing.Point)(resources.GetObject("m_chkAllowBlankPasswords.Location")));
            this.m_chkAllowBlankPasswords.Size          = ((System.Drawing.Size)(resources.GetObject("m_chkAllowBlankPasswords.Size")));
            this.m_chkAllowBlankPasswords.TabIndex      = ((int)(resources.GetObject("m_chkAllowBlankPasswords.TabIndex")));
            this.m_chkAllowBlankPasswords.Text          = resources.GetString("m_chkAllowBlankPasswords.Text");
            m_chkAllowBlankPasswords.Name = "AllowBlankPasswords";
            cc.AddRange(new System.Windows.Forms.Control[] { this.m_lblHelp,
                                                             this.m_radGrantFollowingPermission,
                                                             this.m_ucOptions,
                                                             this.m_radUnrestricted });

            // Fill in the data
            PutValuesinPage();

            m_radGrantFollowingPermission.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_radUnrestricted.CheckedChanged             += new EventHandler(onChangeUnRestrict);
            m_chkAllowBlankPasswords.CheckedChanged      += new EventHandler(onChange);


            return(1);
        }// InsertPropSheetPageControls
예제 #6
0
    static public void InsertRangeBefore(this Control.ControlCollection coll, Control startpoint, IEnumerable <Control> clist)
    {
        List <Control> cur = new List <Control>();

        foreach (Control c in coll)
        {
            if (c == startpoint)
            {
                cur.AddRange(clist);
            }

            cur.Add(c);
        }
        coll.Clear();
        coll.AddRange(cur.ToArray());
    }
예제 #7
0
 private void InitializeComponent()
 {
     this.txtSpawnObject = new TextBox();
     this.spnSpawnAmount = new NumericUpDown();
     this.btnOk          = new Button();
     this.btnCancel      = new Button();
     ((ISupportInitialize)this.spnSpawnAmount).BeginInit();
     base.SuspendLayout();
     this.txtSpawnObject.Location = new Point(3, 8);
     this.txtSpawnObject.Name     = "txtSpawnObject";
     this.txtSpawnObject.ReadOnly = true;
     this.txtSpawnObject.Size     = new System.Drawing.Size(208, 20);
     this.txtSpawnObject.TabIndex = 0;
     this.txtSpawnObject.TabStop  = false;
     this.txtSpawnObject.Text     = "";
     this.spnSpawnAmount.Location = new Point(213, 8);
     this.spnSpawnAmount.Name     = "spnSpawnAmount";
     this.spnSpawnAmount.Size     = new System.Drawing.Size(75, 20);
     this.spnSpawnAmount.TabIndex = 1;
     this.spnSpawnAmount.Enter   += new EventHandler(this.spnSpawnAmount_Enter);
     this.btnOk.Location          = new Point(136, 32);
     this.btnOk.Name             = "btnOk";
     this.btnOk.TabIndex         = 2;
     this.btnOk.Text             = "&Ok";
     this.btnOk.Click           += new EventHandler(this.btnOk_Click);
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new Point(213, 32);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.TabIndex     = 3;
     this.btnCancel.Text         = "&Cancel";
     base.AcceptButton           = this.btnOk;
     this.AutoScaleBaseSize      = new System.Drawing.Size(5, 13);
     base.CancelButton           = this.btnCancel;
     base.ClientSize             = new System.Drawing.Size(292, 61);
     Control.ControlCollection controls = base.Controls;
     Control[] controlArray             = new Control[] { this.btnCancel, this.btnOk, this.spnSpawnAmount, this.txtSpawnObject };
     controls.AddRange(controlArray);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     base.Name            = "Amount";
     base.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Hide;
     base.StartPosition   = FormStartPosition.CenterParent;
     this.Text            = "Set Amount";
     ((ISupportInitialize)this.spnSpawnAmount).EndInit();
     base.ResumeLayout(false);
 }
예제 #8
0
        }// CReflectPermControls

        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CReflectPermControls));
            this.m_radUnrestricted                = new System.Windows.Forms.RadioButton();
            this.m_chkReflectionEmit              = new System.Windows.Forms.CheckBox();
            this.m_lblTypeInformationDes          = new System.Windows.Forms.Label();
            this.m_lblReflectionEmit              = new System.Windows.Forms.Label();
            this.m_chkMemberAccess                = new System.Windows.Forms.CheckBox();
            this.m_lblMemberAccessDes             = new System.Windows.Forms.Label();
            this.m_chkTypeInformation             = new System.Windows.Forms.CheckBox();
            this.m_ucOptions                      = new System.Windows.Forms.UserControl();
            this.m_radGrantFollowingPermission    = new System.Windows.Forms.RadioButton();
            this.m_radUnrestricted.Location       = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Size           = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex       = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            this.m_radUnrestricted.Text           = resources.GetString("m_radUnrestricted.Text");
            m_radUnrestricted.Name                = "Unrestricted";
            this.m_chkReflectionEmit.Location     = ((System.Drawing.Point)(resources.GetObject("m_chkReflectionEmit.Location")));
            this.m_chkReflectionEmit.Size         = ((System.Drawing.Size)(resources.GetObject("m_chkReflectionEmit.Size")));
            this.m_chkReflectionEmit.TabIndex     = ((int)(resources.GetObject("m_chkReflectionEmit.TabIndex")));
            this.m_chkReflectionEmit.Text         = resources.GetString("m_chkReflectionEmit.Text");
            m_chkReflectionEmit.Name              = "ReflectionEmit";
            this.m_lblTypeInformationDes.Location = ((System.Drawing.Point)(resources.GetObject("m_lblTypeInformationDes.Location")));
            this.m_lblTypeInformationDes.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblTypeInformationDes.Size")));
            this.m_lblTypeInformationDes.TabIndex = ((int)(resources.GetObject("m_lblTypeInformationDes.TabIndex")));
            this.m_lblTypeInformationDes.Text     = resources.GetString("m_lblTypeInformationDes.Text");
            m_lblTypeInformationDes.Name          = "TypeInformationLabel";
            this.m_lblReflectionEmit.Location     = ((System.Drawing.Point)(resources.GetObject("m_lblReflectionEmit.Location")));
            this.m_lblReflectionEmit.Size         = ((System.Drawing.Size)(resources.GetObject("m_lblReflectionEmit.Size")));
            this.m_lblReflectionEmit.TabIndex     = ((int)(resources.GetObject("m_lblReflectionEmit.TabIndex")));
            this.m_lblReflectionEmit.Text         = resources.GetString("m_lblReflectionEmit.Text");
            m_lblReflectionEmit.Name              = "ReflectionEmitLabel";
            this.m_chkMemberAccess.Location       = ((System.Drawing.Point)(resources.GetObject("m_chkMemberAccess.Location")));
            this.m_chkMemberAccess.Size           = ((System.Drawing.Size)(resources.GetObject("m_chkMemberAccess.Size")));
            this.m_chkMemberAccess.TabIndex       = ((int)(resources.GetObject("m_chkMemberAccess.TabIndex")));
            this.m_chkMemberAccess.Text           = resources.GetString("m_chkMemberAccess.Text");
            m_chkMemberAccess.Name                = "MemberAccess";
            this.m_lblMemberAccessDes.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblMemberAccessDes.Location")));
            this.m_lblMemberAccessDes.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblMemberAccessDes.Size")));
            this.m_lblMemberAccessDes.TabIndex    = ((int)(resources.GetObject("m_lblMemberAccessDes.TabIndex")));
            this.m_lblMemberAccessDes.Text        = resources.GetString("m_lblMemberAccessDes.Text");
            m_lblMemberAccessDes.Name             = "MemberAccessLabel";
            this.m_chkTypeInformation.Location    = ((System.Drawing.Point)(resources.GetObject("m_chkTypeInformation.Location")));
            this.m_chkTypeInformation.Size        = ((System.Drawing.Size)(resources.GetObject("m_chkTypeInformation.Size")));
            this.m_chkTypeInformation.TabIndex    = ((int)(resources.GetObject("m_chkTypeInformation.TabIndex")));
            this.m_chkTypeInformation.Text        = resources.GetString("m_chkTypeInformation.Text");
            m_chkTypeInformation.Name             = "TypeInformation";
            this.m_ucOptions.Controls.AddRange(new System.Windows.Forms.Control[] {
                this.m_lblMemberAccessDes,
                this.m_chkMemberAccess,
                this.m_lblTypeInformationDes,
                this.m_chkTypeInformation,
                this.m_lblReflectionEmit,
                this.m_chkReflectionEmit
            });
            this.m_ucOptions.Location = ((System.Drawing.Point)(resources.GetObject("m_ucOptions.Location")));
            this.m_ucOptions.Size     = ((System.Drawing.Size)(resources.GetObject("m_ucOptions.Size")));
            this.m_ucOptions.TabIndex = ((int)(resources.GetObject("m_ucOptions.TabIndex")));
            m_ucOptions.Name          = "Options";
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radGrantPermissions.Location")));
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radGrantPermissions.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radGrantPermissions.TabIndex")));
            this.m_radGrantFollowingPermission.Text     = resources.GetString("m_radGrantPermissions.Text");
            m_radGrantFollowingPermission.Name          = "Restricted";
            cc.AddRange(new System.Windows.Forms.Control[] {
                this.m_radUnrestricted,
                this.m_ucOptions,
                this.m_radGrantFollowingPermission
            });

            // Fill in the data
            PutValuesinPage();

            // Put in event Handlers
            m_radGrantFollowingPermission.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_chkMemberAccess.CheckStateChanged          += new EventHandler(onChange);
            m_chkTypeInformation.CheckStateChanged       += new EventHandler(onChange);
            m_chkReflectionEmit.CheckStateChanged        += new EventHandler(onChange);
            m_radUnrestricted.CheckedChanged             += new EventHandler(onChangeUnRestrict);



            return(1);
        }// InsertPropSheetPageControls
예제 #9
0
        }// CTablePermControls

        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTablePermControls));
            this.m_radUnrestricted = new System.Windows.Forms.RadioButton();
            this.m_btnDeleteRow    = new System.Windows.Forms.Button();
            this.m_dg = new MyDataGrid();
            this.m_radGrantFollowingPermission = new System.Windows.Forms.RadioButton();
            this.m_radUnrestricted.Location    = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Size        = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex    = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            this.m_radUnrestricted.Text        = resources.GetString("m_radUnrestricted.Text");
            m_radUnrestricted.Name             = "Unrestricted";
            this.m_btnDeleteRow.Location       = ((System.Drawing.Point)(resources.GetObject("m_btnDeleteRow.Location")));
            this.m_btnDeleteRow.Size           = ((System.Drawing.Size)(resources.GetObject("m_btnDeleteRow.Size")));
            this.m_btnDeleteRow.TabIndex       = ((int)(resources.GetObject("m_btnDeleteRow.TabIndex")));
            this.m_btnDeleteRow.Text           = resources.GetString("m_btnDeleteRow.Text");
            m_btnDeleteRow.Name = "DeleteRow";
            this.m_dg.Location  = ((System.Drawing.Point)(resources.GetObject("m_dg.Location")));
            this.m_dg.Size      = ((System.Drawing.Size)(resources.GetObject("m_dg.Size")));
            this.m_dg.TabIndex  = ((int)(resources.GetObject("m_dg.TabIndex")));
            m_dg.Name           = "Grid";
            this.m_ucOptions.Controls.AddRange(new System.Windows.Forms.Control[] {
                this.m_dg,
                this.m_btnDeleteRow
            });
            this.m_ucOptions.Location = ((System.Drawing.Point)(resources.GetObject("m_ucOptions.Location")));
            this.m_ucOptions.Size     = ((System.Drawing.Size)(resources.GetObject("m_ucOptions.Size")));
            this.m_ucOptions.TabIndex = ((int)(resources.GetObject("m_ucOptions.TabIndex")));
            m_ucOptions.Name          = "Options";
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radGrantFollowingPermission.Location")));
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radGrantFollowingPermission.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radGrantFollowingPermission.TabIndex")));
            this.m_radGrantFollowingPermission.Text     = resources.GetString("m_radGrantFollowingPermission.Text");
            m_radGrantFollowingPermission.Name          = "Restricted";
            cc.AddRange(new System.Windows.Forms.Control[] {
                this.m_radGrantFollowingPermission,
                this.m_ucOptions,
                this.m_radUnrestricted
            });

            m_dt = CreateDataTable(m_dg);
            m_ds = new DataSet();
            m_ds.Tables.Add(m_dt);

            m_dg.DataSource      = m_dt;
            m_dg.BackgroundColor = Color.White;


            // Set up the GUI-type stuff for the data grid
            m_dg.CaptionVisible = false;

            // Fill in the data
            PutValuesinPage();

            // Set up any callbacks
            m_radGrantFollowingPermission.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_dg.TheVertScrollBar.VisibleChanged         += new EventHandler(onVisibleChange);
            m_dg.CurrentCellChanged          += new EventHandler(onChange);
            m_btnDeleteRow.Click             += new EventHandler(onDeleteEntireRow);
            m_radUnrestricted.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_dg.CurrentCellChanged          += new EventHandler(onCellChange);

            // Get the datagrid to be the color we want
            onChangeUnRestrict(null, null);
            // Get the delete entry button set to the correct state
            onCellChange(null, null);
            return(1);
        }// InsertPropSheetPageControls
        }// CIsoStoragePermControls

        //-------------------------------------------------
        // InsertPropSheetPageControls
        //
        // Inserts controls into the given control collection
        //-------------------------------------------------

        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CIsoStoragePermControls));
            this.m_radGrantFollowingPermission = new System.Windows.Forms.RadioButton();
            this.m_cbUsage             = new System.Windows.Forms.ComboBox();
            this.m_lblDiskQuota        = new System.Windows.Forms.Label();
            this.m_lblQuotaDes         = new System.Windows.Forms.Label();
            this.m_lblBytes            = new System.Windows.Forms.Label();
            this.m_radUnrestricted     = new System.Windows.Forms.RadioButton();
            this.m_lblUsageAllowed     = new System.Windows.Forms.Label();
            this.m_txtDiskQuota        = new System.Windows.Forms.TextBox();
            this.m_lblUsageDescription = new System.Windows.Forms.Label();
            this.m_ucOptions           = new System.Windows.Forms.UserControl();
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radGrantPermissions.Location")));
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radGrantPermissions.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radGrantPermissions.TabIndex")));
            this.m_radGrantFollowingPermission.Text     = resources.GetString("m_radGrantPermissions.Text");
            m_radGrantFollowingPermission.Name          = "Restricted";
            this.m_cbUsage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_cbUsage.DropDownWidth = 224;
            this.m_cbUsage.Location      = ((System.Drawing.Point)(resources.GetObject("m_cbUsage.Location")));
            this.m_cbUsage.Size          = ((System.Drawing.Size)(resources.GetObject("m_cbUsage.Size")));
            this.m_cbUsage.TabIndex      = ((int)(resources.GetObject("m_cbUsage.TabIndex")));
            m_cbUsage.Name = "Usage";
            this.m_lblDiskQuota.Location = ((System.Drawing.Point)(resources.GetObject("m_lblDiskQuota.Location")));
            this.m_lblDiskQuota.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblDiskQuota.Size")));
            this.m_lblDiskQuota.TabIndex = ((int)(resources.GetObject("m_lblDiskQuota.TabIndex")));
            this.m_lblDiskQuota.Text     = resources.GetString("m_lblDiskQuota.Text");
            m_lblDiskQuota.Name          = "DiskQuotaLabel";
            this.m_lblQuotaDes.Location  = ((System.Drawing.Point)(resources.GetObject("m_lblQuotaDes.Location")));
            this.m_lblQuotaDes.Size      = ((System.Drawing.Size)(resources.GetObject("m_lblQuotaDes.Size")));
            this.m_lblQuotaDes.TabIndex  = ((int)(resources.GetObject("m_lblQuotaDes.TabIndex")));
            this.m_lblQuotaDes.Text      = resources.GetString("m_lblQuotaDes.Text");
            m_lblQuotaDes.Name           = "DiskQuotaDescription";
            this.m_lblBytes.Location     = ((System.Drawing.Point)(resources.GetObject("m_lblBytes.Location")));
            this.m_lblBytes.Size         = ((System.Drawing.Size)(resources.GetObject("m_lblBytes.Size")));
            this.m_lblBytes.TabIndex     = ((int)(resources.GetObject("m_lblBytes.TabIndex")));
            this.m_lblBytes.Text         = resources.GetString("m_lblBytes.Text");
            m_lblBytes.Name = "BytesLabel";
            this.m_radUnrestricted.Location     = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Size         = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex     = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            this.m_radUnrestricted.Text         = resources.GetString("m_radUnrestricted.Text");
            m_radUnrestricted.Name              = "Unrestricted";
            this.m_lblUsageAllowed.Location     = ((System.Drawing.Point)(resources.GetObject("m_lblUsageAllowed.Location")));
            this.m_lblUsageAllowed.Size         = ((System.Drawing.Size)(resources.GetObject("m_lblUsageAllowed.Size")));
            this.m_lblUsageAllowed.TabIndex     = ((int)(resources.GetObject("m_lblUsageAllowed.TabIndex")));
            this.m_lblUsageAllowed.Text         = resources.GetString("m_lblUsageAllowed.Text");
            m_lblUsageAllowed.Name              = "UsageAllowedLabel";
            this.m_txtDiskQuota.Location        = ((System.Drawing.Point)(resources.GetObject("m_txtDiskQuota.Location")));
            this.m_txtDiskQuota.Size            = ((System.Drawing.Size)(resources.GetObject("m_txtDiskQuota.Size")));
            this.m_txtDiskQuota.TabIndex        = ((int)(resources.GetObject("m_txtDiskQuota.TabIndex")));
            this.m_txtDiskQuota.Text            = resources.GetString("m_txtDiskQuota.Text");
            m_txtDiskQuota.Name                 = "DiskQuota";
            this.m_lblUsageDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_lblUsageDescription.Location")));
            this.m_lblUsageDescription.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblUsageDescription.Size")));
            this.m_lblUsageDescription.TabIndex = ((int)(resources.GetObject("m_lblUsageDescription.TabIndex")));
            m_lblUsageDescription.Name          = "UsageDescription";
            this.m_ucOptions.Controls.AddRange(new System.Windows.Forms.Control[] {
                this.m_lblUsageAllowed,
                this.m_cbUsage,
                this.m_lblQuotaDes,
                this.m_lblDiskQuota,
                this.m_txtDiskQuota,
                this.m_lblUsageDescription,
                this.m_lblBytes
            });
            this.m_ucOptions.Location = ((System.Drawing.Point)(resources.GetObject("m_ucOptions.Location")));
            this.m_ucOptions.Size     = ((System.Drawing.Size)(resources.GetObject("m_ucOptions.Size")));
            this.m_ucOptions.TabIndex = ((int)(resources.GetObject("m_ucOptions.TabIndex")));
            m_ucOptions.Name          = "Options";
            cc.AddRange(new System.Windows.Forms.Control[] {
                this.m_radGrantFollowingPermission,
                this.m_ucOptions,
                this.m_radUnrestricted,
            });
            // Fill in the data
            PutValuesinPage();

            // Hook up event handlers
            m_radGrantFollowingPermission.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_cbUsage.SelectedIndexChanged   += new EventHandler(onChange);
            m_cbUsage.SelectedIndexChanged   += new EventHandler(onUsageChange);
            m_txtDiskQuota.TextChanged       += new EventHandler(onChange);
            m_txtDiskQuota.KeyPress          += new KeyPressEventHandler(onKeyPress);
            m_radUnrestricted.CheckedChanged += new EventHandler(onChangeUnRestrict);


            return(1);
        }// InsertPropSheetPageControls
예제 #11
0
 public static void AddRange(this Control.ControlCollection collection, params Control[] controls)
 {
     collection.AddRange(controls);
 }
예제 #12
0
        }// CSecPermControls

        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CSecPermControls));
            this.m_chkPrincipalControl         = new System.Windows.Forms.CheckBox();
            this.m_radGrantFollowingPermission = new System.Windows.Forms.RadioButton();
            this.m_radUnrestricted             = new System.Windows.Forms.RadioButton();
            this.m_chkDomainPolicyControl      = new System.Windows.Forms.CheckBox();
            this.m_chkEvidenceControl          = new System.Windows.Forms.CheckBox();
            this.m_chkSkipVerification         = new System.Windows.Forms.CheckBox();
            this.m_chkUnmanagedCode            = new System.Windows.Forms.CheckBox();
            this.m_chkCodeExecution            = new System.Windows.Forms.CheckBox();
            this.m_chkThreadControl            = new System.Windows.Forms.CheckBox();
            this.m_chkSerializationFormatter   = new System.Windows.Forms.CheckBox();
            this.m_chkPolicyControl            = new System.Windows.Forms.CheckBox();
            this.m_chkAssertPermissions        = new System.Windows.Forms.CheckBox();
            this.m_chkExtendInfra    = new System.Windows.Forms.CheckBox();
            this.m_chkRemotingConfig = new System.Windows.Forms.CheckBox();
            m_chkAppDomainControl    = new System.Windows.Forms.CheckBox();
            this.m_ucOptions         = new System.Windows.Forms.UserControl();

            this.m_chkPrincipalControl.Location         = ((System.Drawing.Point)(resources.GetObject("m_chkPrincipalControl.Location")));
            this.m_chkPrincipalControl.Size             = ((System.Drawing.Size)(resources.GetObject("m_chkPrincipalControl.Size")));
            this.m_chkPrincipalControl.TabIndex         = ((int)(resources.GetObject("m_chkPrincipalControl.TabIndex")));
            this.m_chkPrincipalControl.Text             = resources.GetString("m_chkPrincipalControl.Text");
            m_chkPrincipalControl.Name                  = "PrincipalControl";
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radGrantPermissions.Location")));
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radGrantPermissions.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radGrantPermissions.TabIndex")));
            this.m_radGrantFollowingPermission.Text     = resources.GetString("m_radGrantPermissions.Text");
            m_radGrantFollowingPermission.Name          = "Restricted";
            this.m_radUnrestricted.Location             = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Size                 = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex             = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            this.m_radUnrestricted.Text                 = resources.GetString("m_radUnrestricted.Text");
            m_radUnrestricted.Name = "Unrestricted";
            this.m_chkDomainPolicyControl.Location = ((System.Drawing.Point)(resources.GetObject("m_chkDomainPolicyControl.Location")));
            this.m_chkDomainPolicyControl.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkDomainPolicyControl.Size")));
            this.m_chkDomainPolicyControl.TabIndex = ((int)(resources.GetObject("m_chkDomainPolicyControl.TabIndex")));
            this.m_chkDomainPolicyControl.Text     = resources.GetString("m_chkDomainPolicyControl.Text");
            m_chkDomainPolicyControl.Name          = "DomainPolicyControl";
            this.m_chkEvidenceControl.Location     = ((System.Drawing.Point)(resources.GetObject("m_chkEvidenceControl.Location")));
            this.m_chkEvidenceControl.Size         = ((System.Drawing.Size)(resources.GetObject("m_chkEvidenceControl.Size")));
            this.m_chkEvidenceControl.TabIndex     = ((int)(resources.GetObject("m_chkEvidenceControl.TabIndex")));
            this.m_chkEvidenceControl.Text         = resources.GetString("m_chkEvidenceControl.Text");
            m_chkEvidenceControl.Name                 = "EvidenceControl";
            this.m_chkSkipVerification.Location       = ((System.Drawing.Point)(resources.GetObject("m_chkSkipVerification.Location")));
            this.m_chkSkipVerification.Size           = ((System.Drawing.Size)(resources.GetObject("m_chkSkipVerification.Size")));
            this.m_chkSkipVerification.TabIndex       = ((int)(resources.GetObject("m_chkSkipVerification.TabIndex")));
            this.m_chkSkipVerification.Text           = resources.GetString("m_chkSkipVerification.Text");
            m_chkSkipVerification.Name                = "SkipVerification";
            this.m_chkUnmanagedCode.Location          = ((System.Drawing.Point)(resources.GetObject("m_chkUnmanagedCode.Location")));
            this.m_chkUnmanagedCode.Size              = ((System.Drawing.Size)(resources.GetObject("m_chkUnmanagedCode.Size")));
            this.m_chkUnmanagedCode.TabIndex          = ((int)(resources.GetObject("m_chkUnmanagedCode.TabIndex")));
            this.m_chkUnmanagedCode.Text              = resources.GetString("m_chkUnmanagedCode.Text");
            m_chkUnmanagedCode.Name                   = "UnmanagedCode";
            this.m_chkCodeExecution.Location          = ((System.Drawing.Point)(resources.GetObject("m_chkCodeExecution.Location")));
            this.m_chkCodeExecution.Size              = ((System.Drawing.Size)(resources.GetObject("m_chkCodeExecution.Size")));
            this.m_chkCodeExecution.TabIndex          = ((int)(resources.GetObject("m_chkCodeExecution.TabIndex")));
            this.m_chkCodeExecution.Text              = resources.GetString("m_chkCodeExecution.Text");
            m_chkCodeExecution.Name                   = "CodeExecution";
            this.m_chkThreadControl.Location          = ((System.Drawing.Point)(resources.GetObject("m_chkThreadControl.Location")));
            this.m_chkThreadControl.Size              = ((System.Drawing.Size)(resources.GetObject("m_chkThreadControl.Size")));
            this.m_chkThreadControl.TabIndex          = ((int)(resources.GetObject("m_chkThreadControl.TabIndex")));
            this.m_chkThreadControl.Text              = resources.GetString("m_chkThreadControl.Text");
            m_chkThreadControl.Name                   = "ThreadControl";
            this.m_chkSerializationFormatter.Location = ((System.Drawing.Point)(resources.GetObject("m_chkSerializationFormatter.Location")));
            this.m_chkSerializationFormatter.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkSerializationFormatter.Size")));
            this.m_chkSerializationFormatter.TabIndex = ((int)(resources.GetObject("m_chkSerializationFormatter.TabIndex")));
            this.m_chkSerializationFormatter.Text     = resources.GetString("m_chkSerializationFormatter.Text");
            m_chkSerializationFormatter.Name          = "SerializationFormatter";
            this.m_chkPolicyControl.Location          = ((System.Drawing.Point)(resources.GetObject("m_chkPolicyControl.Location")));
            this.m_chkPolicyControl.Size              = ((System.Drawing.Size)(resources.GetObject("m_chkPolicyControl.Size")));
            this.m_chkPolicyControl.TabIndex          = ((int)(resources.GetObject("m_chkPolicyControl.TabIndex")));
            this.m_chkPolicyControl.Text              = resources.GetString("m_chkPolicyControl.Text");
            m_chkPolicyControl.Name                   = "PolicyControl";
            this.m_chkAssertPermissions.Location      = ((System.Drawing.Point)(resources.GetObject("m_chkAssertPermissions.Location")));
            this.m_chkAssertPermissions.Size          = ((System.Drawing.Size)(resources.GetObject("m_chkAssertPermissions.Size")));
            this.m_chkAssertPermissions.TabIndex      = ((int)(resources.GetObject("m_chkAssertPermissions.TabIndex")));
            this.m_chkAssertPermissions.Text          = resources.GetString("m_chkAssertPermissions.Text");
            m_chkAssertPermissions.Name               = "AssertPermissions";
            //
            // m_chkExtendInfra
            //
            this.m_chkExtendInfra.Location = ((System.Drawing.Point)(resources.GetObject("m_chkExtendInfra.Location")));
            this.m_chkExtendInfra.Name     = "ExtendInfra";
            this.m_chkExtendInfra.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkExtendInfra.Size")));
            this.m_chkExtendInfra.TabIndex = ((int)(resources.GetObject("m_chkExtendInfra.TabIndex")));
            this.m_chkExtendInfra.Text     = resources.GetString("m_chkExtendInfra.Text");
            this.m_chkExtendInfra.Visible  = ((bool)(resources.GetObject("m_chkExtendInfra.Visible")));
            //
            // m_chkRemotingConfig
            //
            this.m_chkRemotingConfig.Location = ((System.Drawing.Point)(resources.GetObject("m_chkRemotingConfig.Location")));
            this.m_chkRemotingConfig.Name     = "RemotingConfig";
            this.m_chkRemotingConfig.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkRemotingConfig.Size")));
            this.m_chkRemotingConfig.TabIndex = ((int)(resources.GetObject("m_chkRemotingConfig.TabIndex")));
            this.m_chkRemotingConfig.Text     = resources.GetString("m_chkRemotingConfig.Text");
            this.m_chkRemotingConfig.Visible  = ((bool)(resources.GetObject("m_chkRemotingConfig.Visible")));

            //
            // m_chkAppDomainControl
            //
            this.m_chkAppDomainControl.Location = ((System.Drawing.Point)(resources.GetObject("m_chkAppDomainControl.Location")));
            this.m_chkAppDomainControl.Name     = "AppDomainControl";
            this.m_chkAppDomainControl.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkAppDomainControl.Size")));
            this.m_chkAppDomainControl.Text     = resources.GetString("m_chkAppDomainControl.Text");



            this.m_ucOptions.Controls.AddRange(new System.Windows.Forms.Control[] {
                this.m_chkCodeExecution,
                this.m_chkUnmanagedCode,
                this.m_chkAssertPermissions,
                this.m_chkSkipVerification,
                this.m_chkThreadControl,
                this.m_chkPolicyControl,
                this.m_chkDomainPolicyControl,
                this.m_chkPrincipalControl,
                m_chkAppDomainControl,
                this.m_chkSerializationFormatter,
                this.m_chkEvidenceControl,
                m_chkExtendInfra,
                m_chkRemotingConfig
            });
            this.m_ucOptions.Location = ((System.Drawing.Point)(resources.GetObject("m_ucOptions.Location")));
            this.m_ucOptions.Size     = ((System.Drawing.Size)(resources.GetObject("m_ucOptions.Size")));
            this.m_ucOptions.TabStop  = false;
            m_ucOptions.Name          = "Options";
            cc.AddRange(new System.Windows.Forms.Control[] {
                this.m_radGrantFollowingPermission,
                this.m_ucOptions,
                this.m_radUnrestricted
            });

            // Fill in the data
            PutValuesinPage();

            // Hook up event handlers

            m_radGrantFollowingPermission.CheckedChanged  += new EventHandler(onChangeUnRestrict);
            m_chkCodeExecution.CheckStateChanged          += new EventHandler(onChange);
            m_chkUnmanagedCode.CheckStateChanged          += new EventHandler(onChange);
            m_chkAssertPermissions.CheckStateChanged      += new EventHandler(onChange);
            m_chkSkipVerification.CheckStateChanged       += new EventHandler(onChange);
            m_chkThreadControl.CheckStateChanged          += new EventHandler(onChange);
            m_chkPolicyControl.CheckStateChanged          += new EventHandler(onChange);
            m_chkDomainPolicyControl.CheckStateChanged    += new EventHandler(onChange);
            m_chkPrincipalControl.CheckStateChanged       += new EventHandler(onChange);
            m_chkSerializationFormatter.CheckStateChanged += new EventHandler(onChange);
            m_chkEvidenceControl.CheckStateChanged        += new EventHandler(onChange);
            m_chkExtendInfra.CheckStateChanged            += new EventHandler(onChange);
            m_chkRemotingConfig.CheckStateChanged         += new EventHandler(onChange);
            m_chkAppDomainControl.CheckStateChanged       += new EventHandler(onChange);

            m_radUnrestricted.CheckedChanged += new EventHandler(onChangeUnRestrict);

            return(1);
        }// InsertPropSheetPageControls
예제 #13
0
        }// CMessageQueuePermControls

        //-------------------------------------------------
        // InsertPropSheetPageControls
        //
        // Inserts controls into the given control collection
        //-------------------------------------------------
        internal override int InsertPropSheetPageControls(Control.ControlCollection cc)
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CMessageQueuePermControls));
            this.m_radUnrestricted             = new System.Windows.Forms.RadioButton();
            this.m_ucOptions                   = new System.Windows.Forms.UserControl();
            this.m_dgOther                     = new MyDataGrid();
            this.m_btnDeletePath               = new System.Windows.Forms.Button();
            this.m_lblPathDes                  = new System.Windows.Forms.Label();
            this.m_radGrantFollowingPermission = new System.Windows.Forms.RadioButton();
            this.m_dgPath                   = new MyDataGrid();
            this.m_btnDeleteOther           = new System.Windows.Forms.Button();
            this.m_lblOtherDes              = new System.Windows.Forms.Label();
            this.m_radUnrestricted.Location = ((System.Drawing.Point)(resources.GetObject("m_radUnrestricted.Location")));
            this.m_radUnrestricted.Name     = "Unrestricted";
            this.m_radUnrestricted.Size     = ((System.Drawing.Size)(resources.GetObject("m_radUnrestricted.Size")));
            this.m_radUnrestricted.TabIndex = ((int)(resources.GetObject("m_radUnrestricted.TabIndex")));
            this.m_radUnrestricted.Text     = resources.GetString("m_radUnrestricted.Text");
            this.m_ucOptions.Controls.AddRange(new System.Windows.Forms.Control[] {
                this.m_lblPathDes,
                this.m_dgPath,
                this.m_btnDeletePath,
                this.m_lblOtherDes,
                this.m_dgOther,
                this.m_btnDeleteOther
            });
            this.m_ucOptions.Location     = ((System.Drawing.Point)(resources.GetObject("m_ucOptions.Location")));
            this.m_ucOptions.Name         = "Options";
            this.m_ucOptions.Size         = ((System.Drawing.Size)(resources.GetObject("m_ucOptions.Size")));
            this.m_ucOptions.TabIndex     = ((int)(resources.GetObject("m_ucOptions.TabIndex")));
            this.m_dgOther.DataMember     = "";
            this.m_dgOther.Location       = ((System.Drawing.Point)(resources.GetObject("m_dgOther.Location")));
            this.m_dgOther.Name           = "OtherTable";
            this.m_dgOther.Size           = ((System.Drawing.Size)(resources.GetObject("m_dgOther.Size")));
            this.m_dgOther.TabIndex       = ((int)(resources.GetObject("m_dgOther.TabIndex")));
            this.m_btnDeletePath.Location = ((System.Drawing.Point)(resources.GetObject("m_btnDeletePath.Location")));
            this.m_btnDeletePath.Name     = "DeletePath";
            this.m_btnDeletePath.Size     = ((System.Drawing.Size)(resources.GetObject("m_btnDeletePath.Size")));
            this.m_btnDeletePath.TabIndex = ((int)(resources.GetObject("m_btnDeletePath.TabIndex")));
            this.m_btnDeletePath.Text     = resources.GetString("m_btnDeletePath.Text");
            this.m_lblPathDes.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblPathDes.Location")));
            this.m_lblPathDes.Name        = "PathDescription";
            this.m_lblPathDes.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblPathDes.Size")));
            this.m_lblPathDes.TabIndex    = ((int)(resources.GetObject("m_lblPathDes.TabIndex")));
            this.m_lblPathDes.Text        = resources.GetString("m_lblPathDes.Text");
            this.m_radGrantFollowingPermission.Location = ((System.Drawing.Point)(resources.GetObject("m_radGrantPermissions.Location")));
            this.m_radGrantFollowingPermission.Name     = "Restricted";
            this.m_radGrantFollowingPermission.Size     = ((System.Drawing.Size)(resources.GetObject("m_radGrantPermissions.Size")));
            this.m_radGrantFollowingPermission.TabIndex = ((int)(resources.GetObject("m_radGrantPermissions.TabIndex")));
            this.m_radGrantFollowingPermission.Text     = resources.GetString("m_radGrantPermissions.Text");
            this.m_dgPath.DataMember       = "";
            this.m_dgPath.Location         = ((System.Drawing.Point)(resources.GetObject("m_dgPath.Location")));
            this.m_dgPath.Name             = "PathTable";
            this.m_dgPath.Size             = ((System.Drawing.Size)(resources.GetObject("m_dgPath.Size")));
            this.m_dgPath.TabIndex         = ((int)(resources.GetObject("m_dgPath.TabIndex")));
            this.m_btnDeleteOther.Location = ((System.Drawing.Point)(resources.GetObject("m_btnDeleteOther.Location")));
            this.m_btnDeleteOther.Name     = "DeleteOther";
            this.m_btnDeleteOther.Size     = ((System.Drawing.Size)(resources.GetObject("m_btnDeleteOther.Size")));
            this.m_btnDeleteOther.TabIndex = ((int)(resources.GetObject("m_btnDeleteOther.TabIndex")));
            this.m_btnDeleteOther.Text     = resources.GetString("m_btnDeleteOther.Text");
            this.m_lblOtherDes.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblOtherDes.Location")));
            this.m_lblOtherDes.Name        = "OtherDescription";
            this.m_lblOtherDes.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblOtherDes.Size")));
            this.m_lblOtherDes.TabIndex    = ((int)(resources.GetObject("m_lblOtherDes.TabIndex")));
            this.m_lblOtherDes.Text        = resources.GetString("m_lblOtherDes.Text");
            cc.AddRange(new System.Windows.Forms.Control[] {
                this.m_ucOptions,
                this.m_radUnrestricted,
                this.m_radGrantFollowingPermission
            });

            m_dtPath  = CreatePathDataTable(m_dgPath);
            m_dtOther = CreateOtherDataTable(m_dgOther);

            m_ds = new DataSet();
            m_ds.Tables.Add(m_dtPath);
            m_ds.Tables.Add(m_dtOther);

            m_dgPath.DataSource  = m_dtPath;
            m_dgOther.DataSource = m_dtOther;


            // Set up the GUI-type stuff for the data grid
            m_dgPath.CaptionVisible  = false;
            m_dgPath.BackgroundColor = Color.White;

            m_dgOther.CaptionVisible  = false;
            m_dgOther.BackgroundColor = Color.White;

            // Fill in the data
            PutValuesinPage();

            // Set up any callbacks
            m_radGrantFollowingPermission.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_dgPath.CurrentCellChanged      += new EventHandler(onChange);
            m_dgOther.CurrentCellChanged     += new EventHandler(onChange);
            m_btnDeletePath.Click            += new EventHandler(onDeleteEntireRow);
            m_btnDeleteOther.Click           += new EventHandler(onDeleteEntireRow);
            m_radUnrestricted.CheckedChanged += new EventHandler(onChangeUnRestrict);
            m_dgPath.CurrentCellChanged      += new EventHandler(onCellChange);
            m_dgOther.CurrentCellChanged     += new EventHandler(onCellChange);

            // Get the delete buttons set up right
            onCellChange(m_dgPath, null);
            onCellChange(m_dgOther, null);


            return(1);
        }// InsertPropSheetPageControls