private void btnOK_Click(object sender, System.EventArgs e) { if(lvGroup.SelectedItems.Count == 0) { this.DialogResult = DialogResult.None; MessageBox.Show("Please select a Group.","No Group detected"); return; } this.SelectedGroup = (OCL.Group)lvGroup.SelectedItems[0].Tag; this.DialogResult = DialogResult.OK; }
public frmFindGroup(ref OCL.User LUser, ref OCL.Oyster OSystem, OCL.Group SelectedGroup) { this.LUser = LUser; this.OSystem = OSystem; this.SelectedGroup = SelectedGroup; // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // }
public frmGroupPermissions(ref OCL.User AccessingUser,ref OCL.Group TargetGroup,ref OCL.Oyster OSystem) { // // Required for Windows Form Designer support // InitializeComponent(); this.AccessingUser = AccessingUser; this.TargetGroup = TargetGroup; this.OSystem = OSystem; // // TODO: Add any constructor code after InitializeComponent call // }
public frmRecordingSessionPermissions(ref OCL.Group G,ref OCL.RecordingSession RS) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // this.RS = RS; this.G = G; this.Text = G.Description + "'s " + RS.Description + " Permissions"; this.groupBox1.Text = "Modify User's access to " + RS.Description + " in group " + G.Description; this.gbRecordingSessions.Text = "Current permissions for " + RS.Description; }
public frmScenePermissions(ref OCL.Oyster OSystem, ref OCL.User AccessingUser,OCL.Group G,OCL.Scene S) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // this.OSystem = OSystem; this.AccessingUser = AccessingUser; this.CurrentScene = S; this.CurrentGroup = G; this.Text = G.Description + "'s " + S.Description + " Permissions"; this.groupBox1.Text = "Modify User's access to " + S.Description + " in group " + G.Description; this.gbScenes.Text = "Current permissions for " + S.Description; }