コード例 #1
0
        private void menuItemSecurity_Click(object sender, EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.SecurityAdmin))
            {
                return;
            }
            FormCentralSecurity FormCUS = new FormCentralSecurity();

            foreach (CentralConnection conn in _listConns)
            {
                FormCUS.ListConns.Add(conn.Copy());
            }
            FormCUS.ShowDialog();
            _listConns = CentralConnections.GetConnections();          //List may have changed when syncing security settings.
            FillGrid();
        }
コード例 #2
0
ファイル: FormCentralManager.cs プロジェクト: mnisl/OD
		private void menuUserEdit_Click(object sender,EventArgs e) {
			FormCentralSecurity FormCUS=new FormCentralSecurity();
			FormCUS.ShowDialog();
			GetConfigAndConnect();
		}