Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string         referer = Request.UrlReferrer.ToString();
            ButtonGenerate button  = new ButtonGenerate();

            button.createReturn(referer);
            DynButton.Text = button.getButton();

            SessionObject  userObject     = (SessionObject)HttpContext.Current.Session["ID"];
            CommandManager commandManager = new CommandManager(userObject.getAdminUserIdSelected(), userObject.connector);

            //Remplacer par l'historique (historyCommandList)
            List <string> commandList = commandManager.getHistoryList();

            foreach (string s in commandList)
            {
                Msg.Text += s + "<br>";
            }
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string         referer = Request.UrlReferrer.ToString();
            ButtonGenerate button  = new ButtonGenerate();

            button.createReturn(referer);
            DynButton.Text = button.getButton();
            button.createHomeAdmin();
            DynButton2.Text = button.getButton();

            userObject     = (SessionObject)HttpContext.Current.Session["ID"];
            commandManager = new CommandManager(userObject.getAdminUserIdSelected(), userObject.connector);
            //commands.Clear();
            commands = commandManager.getCommandList();
            //CheckBoxList1.Items.Clear();
            foreach (string s in commands)
            {
                CheckBoxList1.Items.Add(s);
            }
        }