Esempio n. 1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.btnCancel = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.gbMain = new System.Windows.Forms.GroupBox();
     this.permissions1 = new CarverLab.Oyster.Permissions();
     this.btnGroupPermissionsUserSearch = new System.Windows.Forms.Button();
     this.tbSearchUsers = new System.Windows.Forms.TextBox();
     this.lvUsers = new System.Windows.Forms.ListView();
     this.clmUserDescription = new System.Windows.Forms.ColumnHeader();
     this.chkPropogateTokens = new System.Windows.Forms.CheckBox();
     this.gbControls = new System.Windows.Forms.GroupBox();
     this.treeView6 = new System.Windows.Forms.TreeView();
     this.gbSources = new System.Windows.Forms.GroupBox();
     this.treeView5 = new System.Windows.Forms.TreeView();
     this.gbScenes = new System.Windows.Forms.GroupBox();
     this.treeView4 = new System.Windows.Forms.TreeView();
     this.gbRecordingSessions = new System.Windows.Forms.GroupBox();
     this.treeView2 = new System.Windows.Forms.TreeView();
     this.gbUsers = new System.Windows.Forms.GroupBox();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.gbMain.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.permissions1)).BeginInit();
     this.gbControls.SuspendLayout();
     this.gbSources.SuspendLayout();
     this.gbScenes.SuspendLayout();
     this.gbRecordingSessions.SuspendLayout();
     this.gbUsers.SuspendLayout();
     this.SuspendLayout();
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(616, 552);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(160, 40);
     this.btnCancel.TabIndex = 5;
     this.btnCancel.Text = "Cancel";
     //
     // btnUpdate
     //
     this.btnUpdate.Enabled = false;
     this.btnUpdate.Location = new System.Drawing.Point(448, 552);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(160, 40);
     this.btnUpdate.TabIndex = 4;
     this.btnUpdate.Text = "Update";
     //
     // gbMain
     //
     this.gbMain.Controls.Add(this.gbControls);
     this.gbMain.Controls.Add(this.gbSources);
     this.gbMain.Controls.Add(this.gbScenes);
     this.gbMain.Controls.Add(this.gbRecordingSessions);
     this.gbMain.Controls.Add(this.gbUsers);
     this.gbMain.Controls.Add(this.btnGroupPermissionsUserSearch);
     this.gbMain.Controls.Add(this.tbSearchUsers);
     this.gbMain.Controls.Add(this.lvUsers);
     this.gbMain.Controls.Add(this.chkPropogateTokens);
     this.gbMain.Location = new System.Drawing.Point(8, 8);
     this.gbMain.Name = "gbMain";
     this.gbMain.Size = new System.Drawing.Size(832, 536);
     this.gbMain.TabIndex = 3;
     this.gbMain.TabStop = false;
     this.gbMain.Text = "User Group Permissions";
     //
     // permissions1
     //
     this.permissions1.DataSetName = "Permissions";
     this.permissions1.Locale = new System.Globalization.CultureInfo("en-US");
     //
     // btnGroupPermissionsUserSearch
     //
     this.btnGroupPermissionsUserSearch.Location = new System.Drawing.Point(200, 24);
     this.btnGroupPermissionsUserSearch.Name = "btnGroupPermissionsUserSearch";
     this.btnGroupPermissionsUserSearch.Size = new System.Drawing.Size(64, 24);
     this.btnGroupPermissionsUserSearch.TabIndex = 28;
     this.btnGroupPermissionsUserSearch.Text = "Search";
     this.btnGroupPermissionsUserSearch.Click += new System.EventHandler(this.btnGroupPermissionsUserSearch_Click);
     //
     // tbSearchUsers
     //
     this.tbSearchUsers.Location = new System.Drawing.Point(8, 24);
     this.tbSearchUsers.Name = "tbSearchUsers";
     this.tbSearchUsers.Size = new System.Drawing.Size(184, 20);
     this.tbSearchUsers.TabIndex = 27;
     this.tbSearchUsers.Text = "";
     //
     // lvUsers
     //
     this.lvUsers.CheckBoxes = true;
     this.lvUsers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                               this.clmUserDescription});
     this.lvUsers.FullRowSelect = true;
     this.lvUsers.GridLines = true;
     this.lvUsers.HideSelection = false;
     this.lvUsers.Location = new System.Drawing.Point(8, 56);
     this.lvUsers.Name = "lvUsers";
     this.lvUsers.Size = new System.Drawing.Size(256, 456);
     this.lvUsers.TabIndex = 18;
     this.lvUsers.View = System.Windows.Forms.View.Details;
     //
     // clmUserDescription
     //
     this.clmUserDescription.Text = "Name";
     this.clmUserDescription.Width = 219;
     //
     // chkPropogateTokens
     //
     this.chkPropogateTokens.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.chkPropogateTokens.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.chkPropogateTokens.Location = new System.Drawing.Point(384, 504);
     this.chkPropogateTokens.Name = "chkPropogateTokens";
     this.chkPropogateTokens.Size = new System.Drawing.Size(352, 24);
     this.chkPropogateTokens.TabIndex = 9;
     this.chkPropogateTokens.Text = "I want to propogate token changes to all user\'s group tokens";
     //
     // gbControls
     //
     this.gbControls.Controls.Add(this.treeView6);
     this.gbControls.Location = new System.Drawing.Point(280, 336);
     this.gbControls.Name = "gbControls";
     this.gbControls.Size = new System.Drawing.Size(264, 152);
     this.gbControls.TabIndex = 33;
     this.gbControls.TabStop = false;
     this.gbControls.Text = "Controls";
     //
     // treeView6
     //
     this.treeView6.CheckBoxes = true;
     this.treeView6.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView6.FullRowSelect = true;
     this.treeView6.HotTracking = true;
     this.treeView6.ImageIndex = -1;
     this.treeView6.Location = new System.Drawing.Point(3, 16);
     this.treeView6.Name = "treeView6";
     this.treeView6.SelectedImageIndex = -1;
     this.treeView6.ShowLines = false;
     this.treeView6.ShowPlusMinus = false;
     this.treeView6.ShowRootLines = false;
     this.treeView6.Size = new System.Drawing.Size(258, 133);
     this.treeView6.TabIndex = 1;
     //
     // gbSources
     //
     this.gbSources.Controls.Add(this.treeView5);
     this.gbSources.Location = new System.Drawing.Point(552, 176);
     this.gbSources.Name = "gbSources";
     this.gbSources.Size = new System.Drawing.Size(264, 152);
     this.gbSources.TabIndex = 32;
     this.gbSources.TabStop = false;
     this.gbSources.Text = "Sources";
     //
     // treeView5
     //
     this.treeView5.CheckBoxes = true;
     this.treeView5.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView5.FullRowSelect = true;
     this.treeView5.HotTracking = true;
     this.treeView5.ImageIndex = -1;
     this.treeView5.Location = new System.Drawing.Point(3, 16);
     this.treeView5.Name = "treeView5";
     this.treeView5.SelectedImageIndex = -1;
     this.treeView5.ShowLines = false;
     this.treeView5.ShowPlusMinus = false;
     this.treeView5.ShowRootLines = false;
     this.treeView5.Size = new System.Drawing.Size(258, 133);
     this.treeView5.TabIndex = 1;
     //
     // gbScenes
     //
     this.gbScenes.Controls.Add(this.treeView4);
     this.gbScenes.Location = new System.Drawing.Point(280, 176);
     this.gbScenes.Name = "gbScenes";
     this.gbScenes.Size = new System.Drawing.Size(264, 152);
     this.gbScenes.TabIndex = 31;
     this.gbScenes.TabStop = false;
     this.gbScenes.Text = "Scenes";
     //
     // treeView4
     //
     this.treeView4.CheckBoxes = true;
     this.treeView4.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView4.FullRowSelect = true;
     this.treeView4.HotTracking = true;
     this.treeView4.ImageIndex = -1;
     this.treeView4.Location = new System.Drawing.Point(3, 16);
     this.treeView4.Name = "treeView4";
     this.treeView4.SelectedImageIndex = -1;
     this.treeView4.ShowLines = false;
     this.treeView4.ShowPlusMinus = false;
     this.treeView4.ShowRootLines = false;
     this.treeView4.Size = new System.Drawing.Size(258, 133);
     this.treeView4.TabIndex = 1;
     //
     // gbRecordingSessions
     //
     this.gbRecordingSessions.Controls.Add(this.treeView2);
     this.gbRecordingSessions.Location = new System.Drawing.Point(552, 16);
     this.gbRecordingSessions.Name = "gbRecordingSessions";
     this.gbRecordingSessions.Size = new System.Drawing.Size(264, 152);
     this.gbRecordingSessions.TabIndex = 30;
     this.gbRecordingSessions.TabStop = false;
     this.gbRecordingSessions.Text = "Recording Sessions";
     //
     // treeView2
     //
     this.treeView2.CheckBoxes = true;
     this.treeView2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView2.FullRowSelect = true;
     this.treeView2.HotTracking = true;
     this.treeView2.ImageIndex = -1;
     this.treeView2.Location = new System.Drawing.Point(3, 16);
     this.treeView2.Name = "treeView2";
     this.treeView2.SelectedImageIndex = -1;
     this.treeView2.ShowLines = false;
     this.treeView2.ShowPlusMinus = false;
     this.treeView2.ShowRootLines = false;
     this.treeView2.Size = new System.Drawing.Size(258, 133);
     this.treeView2.TabIndex = 1;
     //
     // gbUsers
     //
     this.gbUsers.Controls.Add(this.treeView1);
     this.gbUsers.Location = new System.Drawing.Point(280, 16);
     this.gbUsers.Name = "gbUsers";
     this.gbUsers.Size = new System.Drawing.Size(264, 152);
     this.gbUsers.TabIndex = 29;
     this.gbUsers.TabStop = false;
     this.gbUsers.Text = "Users";
     //
     // treeView1
     //
     this.treeView1.CheckBoxes = true;
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.FullRowSelect = true;
     this.treeView1.HotTracking = true;
     this.treeView1.ImageIndex = -1;
     this.treeView1.Location = new System.Drawing.Point(3, 16);
     this.treeView1.Name = "treeView1";
     this.treeView1.SelectedImageIndex = -1;
     this.treeView1.ShowLines = false;
     this.treeView1.ShowPlusMinus = false;
     this.treeView1.ShowRootLines = false;
     this.treeView1.Size = new System.Drawing.Size(258, 133);
     this.treeView1.TabIndex = 0;
     //
     // frmGroupPermissions
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(850, 600);
     this.ControlBox = false;
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.gbMain);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name = "frmGroupPermissions";
     this.Text = "Group Permissions";
     this.Load += new System.EventHandler(this.frmGroupPermissions_Load);
     this.gbMain.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.permissions1)).EndInit();
     this.gbControls.ResumeLayout(false);
     this.gbSources.ResumeLayout(false);
     this.gbScenes.ResumeLayout(false);
     this.gbRecordingSessions.ResumeLayout(false);
     this.gbUsers.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Esempio n. 2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.gbMain = new System.Windows.Forms.GroupBox();
     this.gbControls = new System.Windows.Forms.GroupBox();
     this.treeView6 = new System.Windows.Forms.TreeView();
     this.gbSources = new System.Windows.Forms.GroupBox();
     this.treeView5 = new System.Windows.Forms.TreeView();
     this.gbScenes = new System.Windows.Forms.GroupBox();
     this.treeView4 = new System.Windows.Forms.TreeView();
     this.gbGroups = new System.Windows.Forms.GroupBox();
     this.treeView3 = new System.Windows.Forms.TreeView();
     this.gbRecordingSessions = new System.Windows.Forms.GroupBox();
     this.treeView2 = new System.Windows.Forms.TreeView();
     this.gbUsers = new System.Windows.Forms.GroupBox();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.chkPropogateTokens = new System.Windows.Forms.CheckBox();
     this.permissions1 = new CarverLab.Oyster.Permissions();
     this.gbMain.SuspendLayout();
     this.gbControls.SuspendLayout();
     this.gbSources.SuspendLayout();
     this.gbScenes.SuspendLayout();
     this.gbGroups.SuspendLayout();
     this.gbRecordingSessions.SuspendLayout();
     this.gbUsers.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.permissions1)).BeginInit();
     this.SuspendLayout();
     //
     // gbMain
     //
     this.gbMain.Controls.Add(this.gbControls);
     this.gbMain.Controls.Add(this.gbSources);
     this.gbMain.Controls.Add(this.gbScenes);
     this.gbMain.Controls.Add(this.gbGroups);
     this.gbMain.Controls.Add(this.gbRecordingSessions);
     this.gbMain.Controls.Add(this.gbUsers);
     this.gbMain.Location = new System.Drawing.Point(8, 8);
     this.gbMain.Name = "gbMain";
     this.gbMain.Size = new System.Drawing.Size(824, 336);
     this.gbMain.TabIndex = 0;
     this.gbMain.TabStop = false;
     this.gbMain.Text = " Default System Permissions";
     //
     // gbControls
     //
     this.gbControls.Controls.Add(this.treeView6);
     this.gbControls.Location = new System.Drawing.Point(552, 176);
     this.gbControls.Name = "gbControls";
     this.gbControls.Size = new System.Drawing.Size(264, 152);
     this.gbControls.TabIndex = 5;
     this.gbControls.TabStop = false;
     this.gbControls.Text = "Controls";
     //
     // treeView6
     //
     this.treeView6.CheckBoxes = true;
     this.treeView6.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView6.FullRowSelect = true;
     this.treeView6.HotTracking = true;
     this.treeView6.ImageIndex = -1;
     this.treeView6.Location = new System.Drawing.Point(3, 16);
     this.treeView6.Name = "treeView6";
     this.treeView6.SelectedImageIndex = -1;
     this.treeView6.ShowLines = false;
     this.treeView6.ShowPlusMinus = false;
     this.treeView6.ShowRootLines = false;
     this.treeView6.Size = new System.Drawing.Size(258, 133);
     this.treeView6.TabIndex = 1;
     //
     // gbSources
     //
     this.gbSources.Controls.Add(this.treeView5);
     this.gbSources.Location = new System.Drawing.Point(280, 176);
     this.gbSources.Name = "gbSources";
     this.gbSources.Size = new System.Drawing.Size(264, 152);
     this.gbSources.TabIndex = 4;
     this.gbSources.TabStop = false;
     this.gbSources.Text = "Sources";
     //
     // treeView5
     //
     this.treeView5.CheckBoxes = true;
     this.treeView5.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView5.FullRowSelect = true;
     this.treeView5.HotTracking = true;
     this.treeView5.ImageIndex = -1;
     this.treeView5.Location = new System.Drawing.Point(3, 16);
     this.treeView5.Name = "treeView5";
     this.treeView5.SelectedImageIndex = -1;
     this.treeView5.ShowLines = false;
     this.treeView5.ShowPlusMinus = false;
     this.treeView5.ShowRootLines = false;
     this.treeView5.Size = new System.Drawing.Size(258, 133);
     this.treeView5.TabIndex = 1;
     //
     // gbScenes
     //
     this.gbScenes.Controls.Add(this.treeView4);
     this.gbScenes.Location = new System.Drawing.Point(8, 176);
     this.gbScenes.Name = "gbScenes";
     this.gbScenes.Size = new System.Drawing.Size(264, 152);
     this.gbScenes.TabIndex = 3;
     this.gbScenes.TabStop = false;
     this.gbScenes.Text = "Scenes";
     //
     // treeView4
     //
     this.treeView4.CheckBoxes = true;
     this.treeView4.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView4.FullRowSelect = true;
     this.treeView4.HotTracking = true;
     this.treeView4.ImageIndex = -1;
     this.treeView4.Location = new System.Drawing.Point(3, 16);
     this.treeView4.Name = "treeView4";
     this.treeView4.SelectedImageIndex = -1;
     this.treeView4.ShowLines = false;
     this.treeView4.ShowPlusMinus = false;
     this.treeView4.ShowRootLines = false;
     this.treeView4.Size = new System.Drawing.Size(258, 133);
     this.treeView4.TabIndex = 1;
     //
     // gbGroups
     //
     this.gbGroups.Controls.Add(this.treeView3);
     this.gbGroups.Location = new System.Drawing.Point(552, 16);
     this.gbGroups.Name = "gbGroups";
     this.gbGroups.Size = new System.Drawing.Size(264, 152);
     this.gbGroups.TabIndex = 2;
     this.gbGroups.TabStop = false;
     this.gbGroups.Text = "Groups";
     //
     // treeView3
     //
     this.treeView3.CheckBoxes = true;
     this.treeView3.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView3.FullRowSelect = true;
     this.treeView3.HotTracking = true;
     this.treeView3.ImageIndex = -1;
     this.treeView3.Location = new System.Drawing.Point(3, 16);
     this.treeView3.Name = "treeView3";
     this.treeView3.SelectedImageIndex = -1;
     this.treeView3.ShowLines = false;
     this.treeView3.ShowPlusMinus = false;
     this.treeView3.ShowRootLines = false;
     this.treeView3.Size = new System.Drawing.Size(258, 133);
     this.treeView3.TabIndex = 1;
     //
     // gbRecordingSessions
     //
     this.gbRecordingSessions.Controls.Add(this.treeView2);
     this.gbRecordingSessions.Location = new System.Drawing.Point(280, 16);
     this.gbRecordingSessions.Name = "gbRecordingSessions";
     this.gbRecordingSessions.Size = new System.Drawing.Size(264, 152);
     this.gbRecordingSessions.TabIndex = 1;
     this.gbRecordingSessions.TabStop = false;
     this.gbRecordingSessions.Text = "Recording Sessions";
     //
     // treeView2
     //
     this.treeView2.CheckBoxes = true;
     this.treeView2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView2.FullRowSelect = true;
     this.treeView2.HotTracking = true;
     this.treeView2.ImageIndex = -1;
     this.treeView2.Location = new System.Drawing.Point(3, 16);
     this.treeView2.Name = "treeView2";
     this.treeView2.SelectedImageIndex = -1;
     this.treeView2.ShowLines = false;
     this.treeView2.ShowPlusMinus = false;
     this.treeView2.ShowRootLines = false;
     this.treeView2.Size = new System.Drawing.Size(258, 133);
     this.treeView2.TabIndex = 1;
     //
     // gbUsers
     //
     this.gbUsers.Controls.Add(this.treeView1);
     this.gbUsers.Location = new System.Drawing.Point(8, 16);
     this.gbUsers.Name = "gbUsers";
     this.gbUsers.Size = new System.Drawing.Size(264, 152);
     this.gbUsers.TabIndex = 0;
     this.gbUsers.TabStop = false;
     this.gbUsers.Text = "Users";
     //
     // treeView1
     //
     this.treeView1.CheckBoxes = true;
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.FullRowSelect = true;
     this.treeView1.HotTracking = true;
     this.treeView1.ImageIndex = -1;
     this.treeView1.Location = new System.Drawing.Point(3, 16);
     this.treeView1.Name = "treeView1";
     this.treeView1.SelectedImageIndex = -1;
     this.treeView1.ShowLines = false;
     this.treeView1.ShowPlusMinus = false;
     this.treeView1.ShowRootLines = false;
     this.treeView1.Size = new System.Drawing.Size(258, 133);
     this.treeView1.TabIndex = 0;
     //
     // btnUpdate
     //
     this.btnUpdate.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnUpdate.Enabled = false;
     this.btnUpdate.Location = new System.Drawing.Point(496, 352);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(160, 40);
     this.btnUpdate.TabIndex = 1;
     this.btnUpdate.Text = "Update";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(664, 352);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(160, 40);
     this.btnCancel.TabIndex = 2;
     this.btnCancel.Text = "Cancel";
     //
     // chkPropogateTokens
     //
     this.chkPropogateTokens.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.chkPropogateTokens.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
     this.chkPropogateTokens.Location = new System.Drawing.Point(80, 360);
     this.chkPropogateTokens.Name = "chkPropogateTokens";
     this.chkPropogateTokens.Size = new System.Drawing.Size(400, 24);
     this.chkPropogateTokens.TabIndex = 8;
     this.chkPropogateTokens.Text = "I want to propogate token changes to all users system tokens";
     //
     // permissions1
     //
     this.permissions1.DataSetName = "Permissions";
     this.permissions1.Locale = new System.Globalization.CultureInfo("en-US");
     //
     // frmUserPermissions
     //
     this.AcceptButton = this.btnUpdate;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(834, 400);
     this.ControlBox = false;
     this.Controls.Add(this.chkPropogateTokens);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.gbMain);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name = "frmUserPermissions";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "User Permissions";
     this.Load += new System.EventHandler(this.frmUserPermissions_Load);
     this.gbMain.ResumeLayout(false);
     this.gbControls.ResumeLayout(false);
     this.gbSources.ResumeLayout(false);
     this.gbScenes.ResumeLayout(false);
     this.gbGroups.ResumeLayout(false);
     this.gbRecordingSessions.ResumeLayout(false);
     this.gbUsers.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.permissions1)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 3
0
        public static CarverLab.Oyster.Permissions SetPermissionCaptions(string XMLPermissionsFilename)
        {
            Permissions data = new Permissions();

            data.ReadXml(XMLPermissionsFilename);
            foreach (Permissions.PermissionsTableRow row in data.PermissionsTable.Rows)
            {
                string[] SectionWords = CamelCaseToArray(row.SectionName);
                string[] PermissionNameWords = CamelCaseToArray(row.PermissionName);
                string Caption = row.Caption;

                switch (PermissionNameWords[1])
                {
                    case "See":
                        if (PermissionNameWords.Length > 2 && PermissionNameWords[2] == "Permissions")
                            Caption = CamelCaseSeparate(row.PermissionName) + " for " + CamelCaseSeparate(row.SectionName) + " in this Group";
                        else
                            Caption = CamelCaseSeparate(row.PermissionName) + " " + CamelCaseSeparate(row.SectionName) + " in this Group";
                        break;
                    case "Add":
                        Caption = CamelCaseSeparate(row.PermissionName) + " " + CamelCaseSeparate(row.SectionName) + " to this Group";
                        break;
                    case "Edit":
                        if (PermissionNameWords.Length > 2 && PermissionNameWords[2] == "Permissions")
                            Caption = CamelCaseSeparate(row.PermissionName) + " for " + CamelCaseSeparate(row.SectionName) + " in this Group";
                        else
                            Caption = CamelCaseSeparate(row.PermissionName) + " " + CamelCaseSeparate(row.SectionName) + " in this Group";
                        break;
                    case "Delete":
                        Caption = CamelCaseSeparate(row.PermissionName) + " " + CamelCaseSeparate(row.SectionName) + " from this Group";
                        break;
                    case "Usable":
                        Caption = "Can Watch " + CamelCaseSeparate(row.SectionName) + " in this Group";
                        break;
                    case "Remove":
                        goto case "Delete";
                }
                row.Caption = Caption;
            }
            return data;
        }
Esempio n. 4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.btnCancel = new System.Windows.Forms.Button();
     this.btnUpdate = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.gbScenes = new System.Windows.Forms.GroupBox();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.lvUsers = new System.Windows.Forms.ListView();
     this.clmUserDescription = new System.Windows.Forms.ColumnHeader();
     this.timer1 = new System.Windows.Forms.Timer(this.components);
     this.permissions1 = new CarverLab.Oyster.Permissions();
     this.groupBox1.SuspendLayout();
     this.gbScenes.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.permissions1)).BeginInit();
     this.SuspendLayout();
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnCancel.Location = new System.Drawing.Point(416, 368);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(160, 40);
     this.btnCancel.TabIndex = 8;
     this.btnCancel.Text = "Close";
     //
     // btnUpdate
     //
     this.btnUpdate.Enabled = false;
     this.btnUpdate.Location = new System.Drawing.Point(248, 368);
     this.btnUpdate.Name = "btnUpdate";
     this.btnUpdate.Size = new System.Drawing.Size(160, 40);
     this.btnUpdate.TabIndex = 7;
     this.btnUpdate.Text = "Update Permissions";
     this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.gbScenes);
     this.groupBox1.Controls.Add(this.lvUsers);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(576, 352);
     this.groupBox1.TabIndex = 6;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = " Default Group Permissions";
     //
     // gbScenes
     //
     this.gbScenes.Controls.Add(this.treeView1);
     this.gbScenes.Location = new System.Drawing.Point(288, 24);
     this.gbScenes.Name = "gbScenes";
     this.gbScenes.Size = new System.Drawing.Size(280, 312);
     this.gbScenes.TabIndex = 11;
     this.gbScenes.TabStop = false;
     this.gbScenes.Text = "Scenes";
     //
     // treeView1
     //
     this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.FullRowSelect = true;
     this.treeView1.HotTracking = true;
     this.treeView1.ImageIndex = -1;
     this.treeView1.Location = new System.Drawing.Point(3, 16);
     this.treeView1.Name = "treeView1";
     this.treeView1.SelectedImageIndex = -1;
     this.treeView1.ShowLines = false;
     this.treeView1.ShowPlusMinus = false;
     this.treeView1.ShowRootLines = false;
     this.treeView1.Size = new System.Drawing.Size(274, 293);
     this.treeView1.TabIndex = 0;
     //
     // lvUsers
     //
     this.lvUsers.CheckBoxes = true;
     this.lvUsers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                               this.clmUserDescription});
     this.lvUsers.FullRowSelect = true;
     this.lvUsers.GridLines = true;
     this.lvUsers.HideSelection = false;
     this.lvUsers.Location = new System.Drawing.Point(16, 24);
     this.lvUsers.Name = "lvUsers";
     this.lvUsers.Size = new System.Drawing.Size(264, 312);
     this.lvUsers.TabIndex = 10;
     this.lvUsers.View = System.Windows.Forms.View.Details;
     this.lvUsers.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lvUsers_ItemCheck);
     //
     // clmUserDescription
     //
     this.clmUserDescription.Text = "Name";
     this.clmUserDescription.Width = 243;
     //
     // timer1
     //
     this.timer1.Enabled = true;
     this.timer1.Interval = 500;
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // permissions1
     //
     this.permissions1.DataSetName = "Permissions";
     this.permissions1.Locale = new System.Globalization.CultureInfo("en-US");
     //
     // frmScenePermissions
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(586, 414);
     this.ControlBox = false;
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnUpdate);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name = "frmScenePermissions";
     this.Text = "Scene Permissions";
     this.Load += new System.EventHandler(this.frmScenePermissions_Load);
     this.groupBox1.ResumeLayout(false);
     this.gbScenes.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.permissions1)).EndInit();
     this.ResumeLayout(false);
 }